09.02.2016, 15:47
Код:
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);
Код:
[07:11:54] [DEBUG] CMySQLQuery::Execute - starting query execution [07:11:54] [ERROR] CMySQLQuery::Execute - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1