STRING TO INT

From GTAMods Wiki
Revision as of 17:50, 11 January 2009 by Seemann (talk | contribs) (New page: {{Native |np=2 |p1t=string |p1d=input string |p2t=pointer |p2d=pointer to variable to store result |r=1 |rt=boolean |rd=true if the conversion succeed }} This function converts a given str...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
STRING_TO_INT
Number of parameters: 2
Parameter #TypeDescription
1.stringinput string
2.pointerpointer to variable to store result
Return value:
TypeDescription
booleantrue if the conversion succeed

This function converts a given string to an integer number and store the result to a variable. If the function fails (a string could not be converted to an integer number) the result is false, otherwise true. If the first parameter is NULL, the function returns false and the variable contains value of -999.