SA-MP Forums Archive
Split string into strings and ints? - 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: Split string into strings and ints? (/showthread.php?tid=184653)



Split string into strings and ints? - Whizion - 21.10.2010

So i've got a string which is like this: 112,232,234,888,322,lol,omg,433,dhah,f2,322

Those aren't the exast values there just to show how the string looks.

Well, as you can see every value is separated by a comma and my question is how can i get those values from a string?

That's one string that hold 11 values and i want those 11 values in integers and strings.

How can i do that? Thank you for your answers.


Re: Split string into strings and ints? - Voldemort - 21.10.2010

well, split(... er also can do this.

If we talk how he can read it.


Re: Split string into strings and ints? - Whizion - 21.10.2010

Thanks all.