18.12.2017, 18:03
I ran into a problem, making my car system, the problem is:
And this is my MYSQL Code:
Quote:
[19:55:09] [ERROR] CMySQLQuery::Execute[()] - (error #1064) 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 ''-1.' at line 1 [19:58:35] [ERROR] CMySQLQuery::Execute[()] - (error #1064) 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 ''-1.' at line 1 |
Quote:
saveCarToDB(playerid,carid) { new query[128]; format(query,sizeof(query),"INSERT INTO autos (besitzer,modelid,x,y,z,r,farbe1,farbe2) VALUES ('%s','%i','%f','%f','%f','%f','%i','%i')",getPlay erName(playerid),cInfo[carid][c_model],cInfo[carid][c_x],cInfo[carid][c_y],cInfo[carid][c_z],cInfo[carid][c_r],cInfo[carid][farbe1],cInfo[carid][farbe2]); mysql_function_query(dbhandle,query,false,"",""); return 1; } |