split - 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 (
/showthread.php?tid=85796)
split -
Ribber - 09.07.2009
hey i have a question.
how can i split the file in a new line?
none in ',' or '|' etc.
Re: split -
Anarkien - 09.07.2009
DUDB-file system makes everything on a new line.. Read more here:
http://forum.sa-mp.com/index.php?topic=4798.0
I'm sure you can get dINI to do the same, but at least, DUDB makes it too.
Re: split -
Ribber - 09.07.2009
i have dini and dudb.
i use this for my races coordinate that it load from the file.
The Race winner too.
its very hard to make it with | etc.
other possibility?
Re: split -
Pghpunkid - 09.07.2009
Strtok can also do that.. not sure if the SAMP Method is setup to do this normally.
Re: split -
Ribber - 09.07.2009
hmm that not helped me
Re: split -
lavamike - 09.07.2009
I don't understand what your asking? dini and dudb should automatically create a new line for each value...
Re: split -
Anarkien - 09.07.2009
Quote:
Originally Posted by Lavamike
I don't understand what your asking? dini and dudb should automatically create a new line for each value...
|
Hmm.. From what I've seen when downloading GMs is that many scripts creats a userfile like this:
Those small [] boxes works as the "enter key" if you copy-paste the information into for example FireFox. It'll look like this:
Код:
Key=test
Level=1
AdminLevel=0
Re: split -
lavamike - 09.07.2009
I know sometimes if you open a file in notepad it can get all messed up but usually when that happens I just open it up in wordpad and it's fine. One line per thing.
Re: split -
yom - 09.07.2009
Because Windows's correct way of going to new line is "\r\n".