STRING TO INT

From GTAMods Wiki
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.