Vehicle Facing Angle -
nezo2001 - 30.08.2015
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?
Re: Vehicle Facing Angle -
SpikY_ - 30.08.2015
show me your GetVehicleZAngle with codes you added.
Re: Vehicle Facing Angle -
nezo2001 - 30.08.2015
PHP код:
new Float:x, Float:y, Float:z, Float:a;
GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
GetVehicleZAngle(playerid, 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);
Re: Vehicle Facing Angle -
nezo2001 - 30.08.2015
Haa?
Re: Vehicle Facing Angle -
nezo2001 - 05.09.2015
Bump
Re: Vehicle Facing Angle -
jlalt - 05.09.2015
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);
Re: Vehicle Facing Angle -
xVIP3Rx - 05.09.2015
what is "a" in your database for cars, if they're not 0.0 then show me the loading function.