Example:
Code: Select all
string s1 = "80";
string s2 = " 80";
string s3 = "080";
console.printf("%d", s1.ToInt());
console.printf("%d", s2.ToInt());
console.printf("%d", s3.ToInt());
80
80
0
Tested with recent devbuilds and latest official (3.2.1)
(.pk3 with example included)