Difference between revisions of "STRING TO INT"

From GTAMods Wiki
Jump to navigation Jump to search
(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...)
 
(No difference)

Latest revision as of 17:50, 11 January 2009

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.