Convert string to int
#1

From wiki
PHP код:
new string[4] = "250";
new 
iValue strval(string); 
works but if string = "n250" doesn't work
I want to convert string "n250" to integer 250
Reply
#2

The strings are really made up of numbers Read this https://wiki.alliedmods.net/index.ph...torial#Strings so you can't just change "n" in a single number it is a group of number saved in one variable. To see how numbers are converted in strings refer to this www.asciitable.com But don't know to convert string in number (Sorry)
Reply
#3

Solved by using strdel
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)