28.06.2012, 13:32
This is a common mistake people make with mysql,
That is incorrect, it should be this:
Notice, you forgot the ";" after you close the values bracket.. it makes all the difference..
Код:
format(query,sizeof(query), "INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES('%d','%d','%s','%d')",i,car,playerid);
Код:
format(query,sizeof(query), "INSERT INTO `VehicleKeys` (ID,VehicleID,Linked) VALUES('%d','%d','%s','%d');",i,car,playerid);