30.07.2012, 16:38
Something is not right here
Print result
At Admin and Skin part. It's same! Can someone tell me what is wrong there?
(ignore that ip, I'll fix that later)
pawn Код:
stock SaveStats(playerid)
{
new query[200],ip[16];
GetPlayerIp(playerid,ip,16);
format(query,sizeof(query),"UPDATE `Players` SET `IP`='%s', `Admin`=%d, `VIP`=%d, `Scores`=%d,`Money`=%d,`Skin`=%d WHERE `Username`='%s'",ip, pInfo[playerid][Admin],pInfo[playerid][VIP],GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerSkin(playerid),Getname(playerid));
mysql_query(query);
print(query);
return 1;
}
Код:
UPDATE `Players` SET `IP`='255.255.255.255', `Admin`=287, `VIP`=0, `Scores`=0,`Money`=0,`Skin`=287 WHERE `Username`='tester'
(ignore that ip, I'll fix that later)