MySQL error, displayed on Samp-server, Can't see it.
#1

pawn Код:
[16:38:00] mysql 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 '' at line 1
I know where it is, but I honestly do not see the problem, I've changed it several times.

pawn Код:
new query[256];
    format(query, sizeof(query), "INSERT INTO `vehicles` (VehModel, VehOwner, VehSpawnX, VehSpawnY, VehSpawnZ,VehSpawnAngle, VehColour1, VehColour2, VehFuel, VehPlate, VehWep1,VehWepA1,VehWep2,VehWepA2, VehCash, VehArmour, VehFaction, VehFRank, VehOwned, VehFactioned) VALUES (%d,'nobody'//this part is the error.,%f,%f,%f,%f,%d,%d,%d,'%s',0, 0, 0, 0, 0, 0, %d, %d, 0, 1)", vmodel,scx, scy, scz,sca,colour1,colour2,VehFuel[vehicleid],plate,faction, rank);
    mysql_query(query);
Reply
#2

Resolved, string size was not long enough ** DELETE **
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)