17.04.2013, 23:04
You are using the UPDATE wrong, watch this two lines very carefully:
Better said watch the last line your messing to much with it around. You have two times:
in a row remove one time.
Instead of the Playername does you try to save the weather.
The last one in the second one should when i watched now correct be:
If you can't fix it urself, shout and i give you the fixed part.
pawn Код:
format(szQuery, sizeof(szQuery), "UPDATE `players` SET `Money` = '%d', `Score` = '%d', `Admin` = '%d', `Kills` = '%d', `Deaths` = '%d', `Weather` = '%d'",PlayerInfo[playerid][pCash], PlayerInfo[playerid][pScore], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], PlayerInfo[playerid][pWeather]);
format(szQuery, sizeof(szQuery), "%s, Skin = %d, Time = %d, Color = %d, Tele = %d, Message = %d WHERE Username = '%s'", szQuery, PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pTime], PlayerInfo[playerid][pColor], PlayerInfo[playerid][pTele], PlayerInfo[playerid][pTele], PlayerInfo[playerid][pMessage], PlayerInfo[playerid][pWeather]);
pawn Код:
PlayerInfo[playerid][pTele]
Instead of the Playername does you try to save the weather.
pawn Код:
PlayerInfo[playerid][pWeather]
pawn Код:
PlayerInfo[playerid][pUsername]
//instead of
PlayerInfo[playerid][pWeather]