16.11.2014, 12:55
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,
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)
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
}