Y_INI experience
#1

When player change just 1 variable, for ex Money, is it better to save like this:
Код:
new INI:File = INI_Open(Users(playerid));
INI_SetTag(File,"data");
INI_WriteString(File,"Cash",PlayerInfo[playerid][pCash]); 
INI_Close(File);
Can that cause problems, and is it better and faster than saving all users stats(when just 1 variable changed) ?
Reply
#2

Bump!
Reply
#3

That's fine, it will run quicker than saving everything. However, I suggest if you haven't already, to have a function that saves all stats every couple of minutes or so, incase the server crashes.
Reply
#4

Quote:
Originally Posted by sammp
Посмотреть сообщение
That's fine, it will run quicker than saving everything. However, I suggest if you haven't already, to have a function that saves all stats every couple of minutes or so, incase the server crashes.
Yes, but what about when player get ex: driving licence and he disconnect, then connect and driving licence isn't saved?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)