#1

hey i have a question.
how can i split the file in a new line?
none in ',' or '|' etc.
Reply
#2

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.
Reply
#3

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?
Reply
#4

Strtok can also do that.. not sure if the SAMP Method is setup to do this normally.
Reply
#5

hmm that not helped me
Reply
#6

I don't understand what your asking? dini and dudb should automatically create a new line for each value...
Reply
#7

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
Reply
#8

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.
Reply
#9

Because Windows's correct way of going to new line is "\r\n".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)