26.01.2011, 05:15
Strange, i'm guessing it's something eles in my code then.
pawn Код:
//playerfinishmission
{
PlayerInfo[playerid][Shamal]++;
SetPlayerScore(playerid, GetPlayerScore(playerid) + 3);
ResetMissionBar(playerid);
return 1;
}
pawn Код:
//the saving stock, the stats save when a player disconnects. and on a 3 min timer.
public SaveUser(playerid)
{
if(IsLogged(playerid))
{
new Query[300]; format(Query, sizeof(Query), "UPDATE users SET money = %d, score = %d, Shamal = %d, Cargo = %d, Helicopter = %d, ban = %d, ban_reason = '%s' WHERE username = '%s';", GetPlayerMoney(playerid), GetPlayerScore(playerid), PlayerInfo[playerid][Shamal], PlayerInfo[playerid][Cargo],PlayerInfo[playerid][Helicopter], PlayerInfo[playerid][Banned], PlayerInfo[playerid][Reason], GetName(playerid));
mysql_query(Query);
}
}