PDA

View Full Version : SetVehiclePos bug


iWhite
21/06/2013, 12:38 PM
In samp wiki it says "An empty vehicle will not fall after being teleported into the air.", but it falls. I tried this 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...

Swyft
21/06/2013, 12:40 PM
Well


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.

iWhite
21/06/2013, 12:41 PM
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