SetVehiclePos bug
#1

In samp wiki it says "An empty vehicle will not fall after being teleported into the air.", but it falls. I tried this code:

Code:
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   SetPlayerPos(playerid, x, y, z);
   SetTimerEx("@SetVehiclePos", 500, false, "ifff", GetPlayerVehicleID(playerid), x, y, z+10);
But vehicle is falling on me everytime...
Reply
#2

Well

pawn Code:
SetTimerEx("@SetVehiclePos", 500, false, "ifff", GetPlayerVehicleID(playerid), x, y, z+10);
Z+10 represents the Z Coordinate going up by 10... So it makes the car teleport in the air.
Reply
#3

Yes and in wiki it says "An empty vehicle will not fall after being teleported into the air", so it should freeze being without driver but it falls on me
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)