14.01.2015, 16:31
Hello guys, i am having some trouble saving my interior ID into my mysql database, I will post the query format of the mysql where it saves. I can't seem to get what the problem is here, tried everything
I will also post 2 lines that came from the mysql log that i fixed somehow but maybe its also related to this problem.
Thanks for helping in advance
pawn Код:
mysql_format(Pipeline, szQuery, sizeof(szQuery), "UPDATE `accounts` SET `Level`=%d, `Gender`=%d, `Admin`=%d, `Skin`=%d, `helper`=%d, `donator`=%d, `leader`=%d, `faction`=%d, `rank`=%d, `interior`=%d, `posX`=%f, `posY`=%f, `posZ`=%f, `posA`=%f WHERE `Username`='%s'",
PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pGender], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pSkin], PlayerInfo[playerid][pHelper], PlayerInfo[playerid][pDonator], PlayerInfo[playerid][pLeader], PlayerInfo[playerid][pFaction], PlayerInfo[playerid][pRank], PlayerInfo[playerid][pInterior], PlayerInfo[playerid][PosX], PlayerInfo[playerid][PosY], PlayerInfo[playerid][PosZ], PlayerInfo[playerid][FA], GetName(playerid));
Код:
[22:48:53] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (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 '`posX`=247.04, `posY`=114.546, `posZ`=1003.219, `posA` =326.956 WHERE `Username`' at line 1 [22:49:40] [ERROR] CMySQLQuery::Execute[OnQueryFinish] - (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 '`posX`=132.0, `posY`=-67.291, `posZ`=1.578, `posA` =0.0 WHERE `Username`='Heinri' at line 1