31.01.2013, 23:52
I get tag mismatch no matter what i try, any help?
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
Query[ 200 ],
name[ MAX_PLAYER_NAME ],
float:health,
float:armour
;
GetPlayerName(playerid, name, sizeof(name));
if(Bit1_Get(g_PlayerLogged, playerid) == 1)
{
format(Query,sizeof(Query),"UPDATE `USERS` SET SCORE = '%d', CASH = '%d', HEALTH = '%f', ARMOUR = '%f', ADMINLEVEL = '%d' WHERE `NAME` = '%s'",
GetPlayerScore(playerid),
GetPlayerMoney(playerid),
GetPlayerHealth(playerid, health),
GetPlayerArmour(playerid, armour),
Bit16_Get(g_AdminLevel, playerid),
DB_Escape(name));
db_query(Database, Query);
Bit1_Set(g_PlayerLogged, playerid, false);
}
return 1;
}