Originally Posted by Jeplaa 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. PHP Code: String string = "1234";int num = Integer.parseInt(string); Thanks in advance, Jeplaa yeah, there has been a stock function since the very first COD: PHP Code: int( string ); FYI - the function in COD1 and UO took this form: PHP Code: (int)( string);
String string = "1234";int num = Integer.parseInt(string);
int( string );
(int)( string);
Last edited by Tally; 24th February 2014 at 11:44.
Jeplaa (24th February 2014)
Forum Rules