30.10.2018, 09:34
pawn Код:
SavePlayerInfo(playerid)
{
if(sInfo[playerid][kazkas] == 0) return 1;
sInfo[playerid][XP] = GetPlayerScore(playerid);
sInfo[playerid][pinigai] = GetPlayerMoney(playerid);
new query[256];
format(query, sizeof(query), "UPDATE `user` SET XP='%i', pinigai='%i', adminlevel='%i' WHERE id='%i'",
sInfo[playerid][XP], sInfo[playerid][pinigai], sInfo[playerid][adminlevel], sInfo[playerid][id]);
mysql_function_query(manomysql, query, false, "", "");
return 1;
}