SA-MP Forums Archive
How to create new lines - 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: How to create new lines (/showthread.php?tid=132137)



How to create new lines - Torran - 06.03.2010

Hello,

Im making my own Admin system and the players file is mixed up and kind of confusing,
Im using File Functions, And i was wondering how i create a new line in the players file?

Thanks


Re: How to create new lines - Miguel - 06.03.2010

This might be usefeul for you :
https://sampwiki.blast.hk/wiki/File_Functions


Re: How to create new lines - Torran - 06.03.2010

Ok thanks,

Atm i have:

pawn Код:
format(file, sizeof file, "Warnings: %d\n",AccountInfo[playerid][Warns]);
{   fwrite(account, file); }
Would i make it:

pawn Код:
format(file, sizeof file, "Warnings: %d\r\n",AccountInfo[playerid][Warns]);
{   fwrite(account, file); }



Re: How to create new lines - Torran - 06.03.2010

I tried it.. BUT!

It messes up the accounts, Like if i register then login it says incorrect password,
It messes up the accounts