04.11.2010, 23:29
should be
PHP код:
stock SaveUsers(playerid)
{
if(!PlayerLogged[playerid])
return 0;
playerinfo[playerid][Score] = GetPlayerScore(playerid);
playerinfo[playerid][Money] = GetPlayerMoney(playerid);
playerinfo[playerid][Skin] = GetPlayerSkin(playerid);
new string[256];
format(string, sizeof(string), "UPDATE users SET Password='%s',Admin='%d',Money='%d',Score='%d',Skin='%d' WHERE Name='%s'", playerinfo[playerid][Password], playerinfo[playerid][Admin], playerinfo[playerid][Money],playerinfo[playerid][Score], playerinfo[playerid][Skin],playerinfo[playerid][Name]);
mysql_query(string);
return 1;
}

