Make string to numeric - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Make string to numeric (
/showthread.php?tid=71973)
Make string to numeric -
kevinsoftware - 05.04.2009
Hello,
I have a little problem, I want to make a string to a numeric, Something lie this:
"453" -> 453
Does anyone know how to do that?
Thankyou,
Re: Make string to numeric -
SpiderPork - 05.04.2009
Don't use %s, use %d...
Re: Make string to numeric -
Danut - 05.04.2009
or i%
Re: Make string to numeric -
kevinsoftware - 05.04.2009
I know, but its get a value from MySql Database as string,
Re: Make string to numeric -
Donny_k - 05.04.2009
You mean like strval(..) ?
Re: Make string to numeric -
kevinsoftware - 05.04.2009
Yes, thats was the function that i did search for thank you