Multiple Line MYSQL
#1

I want to make for my PlayerSave multiple lines.

PHP код:
mysql_format(handlequerysizeof(query), "UPDATE users SET level = '%d', leben = '%d', holz = '%d', stein = '%d', eisen = '%d',"PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pLeben], PlayerInfo[playerid][pHolz], PlayerInfo[playerid][pStein], PlayerInfo[playerid][pEisen]);
     
mysql_format(handlequerysizeof(query), "%s map = '%d', recht = '%d', alive = '%d',",PlayerInfo[playerid][pMap], PlayerInfo[playerid][pRecht], PlayerInfo[playerid][pAlive]);
    
mysql_format(handlequerysizeof(query), "%s posx = '%f', posy = '%f', posz = '%f', posarg = '%f',",PlayerInfo[playerid][pPosx], PlayerInfo[playerid][pPosy], PlayerInfo[playerid][pPosz], PlayerInfo[playerid][pPosArg]);
    
mysql_format(handlequerysizeof(query), "%s skinid = '%d' WHERE id = '%d'"PlayerInfo[playerid][pSkinid], PlayerInfo[playerid][pID]);
     
mysql_pquery(handlequery); 
But this Error comes:
Код:
[21:48:24] [ERROR] mysql_format: no value for specifier '%d' passed
[21:48:24] [ERROR] mysql_format: no value for specifier '%f' passed
[21:48:24] [ERROR] mysql_format: no value for specifier '%d' passed
[21:48:24] [ERROR] error #1064 while executing query "UPDATE users SET level = '0', leben = '1', holz = '100', stein = '100', eisen = '100',": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
Reply


Messages In This Thread
Multiple Line MYSQL - by Dreandor - 16.06.2018, 19:57
Re: Multiple Line MYSQL - by KaryM4Life - 16.06.2018, 20:13
Re: Multiple Line MYSQL - by Dreandor - 16.06.2018, 20:26
Re: Multiple Line MYSQL - by Calisthenics - 16.06.2018, 21:22
Re: Multiple Line MYSQL - by Dreandor - 16.06.2018, 21:54

Forum Jump:


Users browsing this thread: 2 Guest(s)