09.02.2016, 15:55
Quote:
|
And where, how do you format those %d ?
Also you have missing ); at the Weather pawn Код:
|
Код:
strcat(qstr, "UPDATE `players` SET ");
strcat(qstr, "`Admin` = %d,");
strcat(qstr, "`VIP` = %d,");
strcat(qstr, "`FreeRoam_Score` = %d,");
strcat(qstr, "`Deathmatch_Score` = %d,");
strcat(qstr, "`Duel_Score` = %d,");
strcat(qstr, "`Deaths` = %d,");
strcat(qstr, "`Skin` = %d,");
strcat(qstr, "`Pms` = %d,");
strcat(qstr, "`Gos` = %d,");
strcat(qstr, "`God` = %d,");
strcat(qstr, "`Cms` = %d,");
strcat(qstr, "`MegaJump` = %d,");
strcat(qstr, "`Color` = %d,");
strcat(qstr, "`Fighting_Style` = %d,");
strcat(qstr, "`BanCount` = %d,");
strcat(qstr, "`JailCount` = %d,");
strcat(qstr, "`KickCount` = %d,");
strcat(qstr, "`MuteCount` = %d,");
strcat(qstr, "`ExplodeCount` = %d,");
strcat(qstr, "`SlapCount` = %d,");
strcat(qstr, "`WeaponRCount` = %d,");
strcat(qstr, "`Banned` = %d,");
strcat(qstr, "`Jailed` = %d,");
strcat(qstr, "`Muted` = %d,");
strcat(qstr, "`Frozen` = %d,");
strcat(qstr, "`Time` = %d,");
strcat(qstr, "`Weather` = %d);
strcat(qstr, " WHERE ");
strcat(qstr,"`Account_ID` = %d");
mysql_format(mysql, query, sizeof(query), qstr,
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pVip],
PlayerInfo[playerid][pKills],
PlayerInfo[playerid][pDeathmatchScore],
PlayerInfo[playerid][DuelScore],
PlayerInfo[playerid][pDeaths],
PlayerInfo[playerid][pSkin],
PlayerInfo[playerid][Pms],
PlayerInfo[playerid][Gos],
God[playerid],
PlayerInfo[playerid][CMS],
MegaJump[playerid],
PlayerInfo[playerid][pColor],
PlayerInfo[playerid][FightStyles],
PlayerInfo[playerid][BanC],
PlayerInfo[playerid][KickC],
PlayerInfo[playerid][MuteC],
PlayerInfo[playerid][ExplodeC],
PlayerInfo[playerid][SlapC],
PlayerInfo[playerid][WeaponRC],
PlayerInfo[playerid][pBan],
PlayerInfo[playerid][Jail],
PlayerInfo[playerid][pMuted],
PlayerInfo[playerid][Freeze],
PlayerInfo[playerid][Time],
PlayerInfo[playerid][pWeather],
PlayerInfo[playerid][Accountid]);
mysql_query(mysql, query);

