09.01.2011, 19:49
(
Последний раз редактировалось NewbBeginner; 10.01.2011 в 04:16.
)
Код:
public OnGameModeExit() { for(new ServerVehicles; ServerVehicles < MAX_VEHICLES; ServerVehicles++) { new Float:PosnX; new Float:PosY; new Float:PosZ; new Float:aAngle; new aModel; aModel = GetVehicleModel(GetPlayerVehicleID(ServerVehicles)); GetVehiclePos(ServerVehicles, PositsioonX, PositsioonY, PositsioonZ); GetVehicleZAngle(GetPlayerVehicleID(ServerVehicles), aAngle); format(Query, sizeof(Query), "UPDATE `cars` SET `PosX` = '%f', `PosY` = '%f', `PosZ` = '%f', `AutoAngle` = '%f' WHERE `CarID` = '%d'", PosX, PosY, PosnZ, aAngle, aAngle, aModel); mysql_query(Query); } mysql_close(); return 1; }
Please help.