pawn Код:
SavePlayer(playerid)
{
if(PlayerInfo[playerid][LoggedIn] == 1)
{
new Query[1000];
format(Query, 1000, "UPDATE `playerdata` SET `admin` = '%d', `score` = '%d', `money` = '%d', `kills` = '%d', `deaths` = '%d', `banned` = '%d', `Donor` = '%d', `Pilot` = '%d', `NavyPilot` = '%d', `Helper` = '%d' WHERE `id` = '%d' LIMIT 1",
PlayerInfo[playerid][Level],
PlayerInfo[playerid][pScore],
PlayerInfo[playerid][Money],
PlayerInfo[playerid][Kills],
PlayerInfo[playerid][Deaths],
PlayerInfo[playerid][banned],
PlayerInfo[playerid][dRank],
PlayerInfo[playerid][pPilot],
PlayerInfo[playerid][jPilot],
PlayerInfo[playerid][Helper],
PlayerInfo[playerid][ID]);
mysql_query(Query);
}
}