Hey,
Is it possible to convert string to integer in CoD2 using stock functions ?
Here is example using Java, hope it is similar in CoD2.
Thanks in advance,PHP Code:
String string = "1234";
int num = Integer.parseInt(string);
Jeplaa
Printable View
Hey,
Is it possible to convert string to integer in CoD2 using stock functions ?
Here is example using Java, hope it is similar in CoD2.
Thanks in advance,PHP Code:
String string = "1234";
int num = Integer.parseInt(string);
Jeplaa
http://znation.nl/cod4script/int.htm
Quote:
Int( <value> )
Module: Math
Summary:
Casts a floating point number or a string to an integer
Example:
x = Int( self.HUDHealthHeight );
Required Args:
1 : <value> A string or floating point number to cast to an integer
Ohh got it, tried this function but made fault in code :)