[Ajuda] Erro estranho do MySQL
#1

Entгo, fiz uma query que estб gerando um erro estranho no log.

Cуdigo:

PHP код:
mysql_format(mysql,
    
query,
    
sizeof(query),
    
"UPDATE `players` SET \
    `pmoney` = %d \
    `pskin` = %d \
    `pgender` = %d \
    `pposx` = %f \
    `pposy` = %f \
    `pposz` = %f \
    `pposa` = %f \
    `pinterior` = %d \
    `pvirtualworld` = %d \
    `pstaff` = %d \
    `plastip` = %e \
    WHERE `pid` = '%d'"
,
    
pInfo[playerid][pMoney],
    
pInfo[playerid][pSkin],
    
pInfo[playerid][pGender],
    
pInfo[playerid][pPosX],
    
pInfo[playerid][pPosY],
    
pInfo[playerid][pPosZ],
    
pInfo[playerid][pPosA],
    
pInfo[playerid][pInterior],
    
pInfo[playerid][pVirtualWorld],
    
pInfo[playerid][pStaff],
    
pInfo[playerid][pLastIP],
    
pInfo[playerid][pUID]
    );
    
mysql_tquery(mysqlquery); 
Erro que gerou no log:

Код HTML:
[12:05:11] [plugins/mysql] error #1064 while executing query "UPDATE `players` SET `pmoney` = 5500 `pskin` = 60 `pgender` = 1 `pposx` = 0.000000 `pposy` = 0.000000 `pposz` = 0.000000 `pposa` = 0.000000 `pinterior` = 0 `pvirtualworld` = 0 `pstaff` = 4 `plastip` = 127.0.0.1 WHERE `pid` = '1'": 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 '`pskin` = 60 `pgender` = 1 `pposx` = 0.000000 `pposy` = 0.000000 `pposz` = 0.000' at line 1
Reply


Messages In This Thread
Erro estranho do MySQL - by CodingArt - 21.01.2019, 13:15
Re: Erro estranho do MySQL - by G4M30V3R - 21.01.2019, 14:46
Re: Erro estranho do MySQL - by willttoonn - 21.01.2019, 14:58
Re: Erro estranho do MySQL - by CodingArt - 21.01.2019, 15:34
Re: Erro estranho do MySQL - by RenanMsV - 21.01.2019, 18:56
Re: Erro estranho do MySQL - by CodingArt - 21.01.2019, 19:21

Forum Jump:


Users browsing this thread: 2 Guest(s)