[MySQL] Storing data without duplicates.
#4

I've error:
PHP код:
errorid1064error[]: "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 'WHERE pid=37 AND slot=0' at line 1"resultid: -1extraid: -1callback[]: "NULL"query[] 
--

PHP код:
format(querysizeof(query), "INSERT INTO `"MYSQL_PREFIX"aop` (pid,modelid,slot,boneid,fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ) \
    VALUES (%i,%i,%i,%i,%f,%f,%f,%f,%f,%f,%f,%f,%f) \
        ON DUPLICATE KEY \
    UPDATE modelid=%i,boneid=%i,fOffsetX=%f,fOffsetY=%f,fOffsetZ=%f,fRotX=%f,fRotY=%f,fRotZ=%f,fScaleX=%f,fScaleY=%f,fScaleZ=%f \
    WHERE pid=%i \
    AND slot=%i"
,
    
Player[playerid][PID], AOP[playerid][i][ao_model], iAOP[playerid][i][ao_bone], AOP[playerid][i][ao_x], AOP[playerid][i][ao_y], AOP[playerid][i][ao_z], AOP[playerid][i][ao_rx],
    
AOP[playerid][i][ao_ry], AOP[playerid][i][ao_rz], AOP[playerid][i][ao_sx], AOP[playerid][i][ao_sy], AOP[playerid][i][ao_sz], AOP[playerid][i][ao_model], AOP[playerid][i][ao_bone], AOP[playerid][i][ao_x], AOP[playerid][i][ao_y], AOP[playerid][i][ao_z], AOP[playerid][i][ao_rx],
    
AOP[playerid][i][ao_ry], AOP[playerid][i][ao_rz], AOP[playerid][i][ao_sx], AOP[playerid][i][ao_sy], AOP[playerid][i][ao_sz], Player[playerid][PID], i); 
Reply


Messages In This Thread
[MySQL] Storing data without duplicates. - by CherryMond - 20.02.2019, 13:18
Re: [MySQL] Storing data without duplicates. - by CherryMond - 20.02.2019, 13:25
Re: [MySQL] Storing data without duplicates. - by Calisthenics - 20.02.2019, 14:25
Re: [MySQL] Storing data without duplicates. - by CherryMond - 20.02.2019, 17:53
Re: [MySQL] Storing data without duplicates. - by Calisthenics - 21.02.2019, 08:04
Re: [MySQL] Storing data without duplicates. - by CherryMond - 21.02.2019, 08:18

Forum Jump:


Users browsing this thread: 1 Guest(s)