16.12.2011, 12:25
pawn Код:
public OnPlayerConnect(playerid)
{
serverInfoUpdate(true);
if(isPlayerWhiteListed(playerid))
{
//code
}
return 1;
}
public OnPlayerDisconnect(playerid, reason
{
serverInfoUpdate(false);
savePlayerAccount(playerid);
return 1;
}
Код:
MYSQL]: Error ID: 2014 | Error: Commands out of sync; you can't run this command now | Query: SELECT `pName` FROM `whitelist` WHERE `pName` = 'Unknown' [14:00:26] MYSQL]: Commands out of sync for thread ID: -1 [14:00:26] MYSQL]: Error ID: 2014 | Error: Commands out of sync; you can't run this command now | Query: UPDATE `serverinfo` SET `onlinePlayers` = `PlayersOnline` +1 [14:00:26] MYSQL]: Commands out of sync for thread ID: -1
Код:
[13:33:32] MYSQL]: Error ID: 2014 | Error: Commands out of sync; you can't run this command now | Query: UPDATE `accs` SET aLevel = '0' ect ect.. WHERE `pName` = 'Unknown' [13:33:32] MYSQL]: Commands out of sync for thread ID: -1 [13:33:32] MYSQL]: Error ID: 2014 | Error: Commands out of sync; you can't run this command now | Query: UPDATE `sinfo` SET `onlinePlayers` = `PlayersOnline` -1 [13:33:32] MYSQL]: Commands out of sync for thread ID: -1
Clickme
i dont know how to fix but i think the problem is that a new query starts before another query finish