11.01.2011, 15:05
I figured something out, I have now this code, but it doesn't update.
Код:
stock savecars() { for(new id; id < cars; id++) { new Float:pposX, Float:pposY, Float:pposZ,Float:AutoAngle; GetVehiclePos(id, pposX, pposY, pposZ); GetVehicleZAngle(id, AutoAngle); format(Query, sizeof(Query), "UPDATE `cars` SET `PosX` = '%f', `PosY` = '%f', `PosZ` = '%f', `AutoAngle` = '%f' WHERE `carid` = '%d'", pposX, pposY, pposZ, AutoAngle, id); mysql_query(Query); } }