Posts: 680
Threads: 143
Joined: Nov 2014
Reputation:
0
GetVehicleZAngle function doesn't do what I want. I want to save vehicles coords as it is with the same facing position. But when I use GetVehicleZAngle it changed the vehicle facing position to the north. Is there a way to get its facing angle?
Posts: 1,246
Threads: 140
Joined: Jul 2014
Reputation:
0
show me your GetVehicleZAngle with codes you added.
Posts: 1,266
Threads: 6
Joined: Oct 2014
try:
PHP код:
new Float:x, Float:y, Float:z, Float:a;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
new carid = GetPlayerVehicleID(playerid);
GetVehicleZAngle(carid, a);
format(query, sizeof(query), "INSERT INTO cars (id, model, x, y, z, a, owner, owned, price, locked, color1, color2, cSale) VALUES ('%i', '%i', '%f', '%f', '%f', '%f', 'None', '0', '%i', '0', '0', '0', '0')", cAutoIncrease, GetVehicleModel(GetPlayerVehicleID(playerid)), x, y, z, a, price);
mysql_query(1, query);
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
what is "a" in your database for cars, if they're not 0.0 then show me the loading function.