How to create new lines
#1

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

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

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); }
Reply
#4

I tried it.. BUT!

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


Forum Jump:


Users browsing this thread: 1 Guest(s)