Accounts don't save when close server.
#7

Actually, the query size should be between 148 - 158 ( After calculating the approx. string size, it was 148 )
Anyways, do as sammp said, save the stats when a player disconnects, and also,
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(!IsPlayerConnected(i)) continue;
    //rest of code
}
Please use the "IsPlayerConnected" check, otherwise you will might write random stats for players. ( Due to the fact that 'MAX_PLAYERS' is the same as using "50", It goes from 0 to 50, writing the player stats.. i = 0, 1, 2, 3, 4, .... 50)
Reply


Messages In This Thread
Accounts don't save when close server. - by xHanks - 16.11.2014, 10:46
Re : Accounts don't save when close server. - by Dutheil - 16.11.2014, 11:22
Respuesta: Accounts don't save when close server. - by xHanks - 16.11.2014, 11:51
Re: Accounts don't save when close server. - by Sawalha - 16.11.2014, 12:03
Re: Accounts don't save when close server. - by sammp - 16.11.2014, 12:18
Re: Accounts don't save when close server. - by Lordzy - 16.11.2014, 12:53
Re: Accounts don't save when close server. - by Kyance - 16.11.2014, 12:55
Re: Accounts don't save when close server. - by Kwarde - 16.11.2014, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)