Vehicle Facing Angle
#1

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?
Reply
#2

show me your GetVehicleZAngle with codes you added.
Reply
#3

PHP код:
new Float:xFloat:yFloat:zFloat:a;
    
GetVehiclePos(GetPlayerVehicleID(playerid), xyz);
    
GetVehicleZAngle(playerida);
    
format(querysizeof(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')"cAutoIncreaseGetVehicleModel(GetPlayerVehicleID(playerid)), xyzaprice);
    
mysql_query(1query); 
Reply
#4

Haa?
Reply
#5

Bump
Reply
#6

try:
PHP код:
new Float:xFloat:yFloat:zFloat:a;
    
GetVehiclePos(GetPlayerVehicleID(playerid), xyz);
    new 
carid GetPlayerVehicleID(playerid);
    
GetVehicleZAngle(carida);
    
format(querysizeof(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')"cAutoIncreaseGetVehicleModel(GetPlayerVehicleID(playerid)), xyzaprice);
    
mysql_query(1query); 
Reply
#7

what is "a" in your database for cars, if they're not 0.0 then show me the loading function.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)