[Include] SendVehicleToPlayer.inc
#4

There are few problems with the code:

pawn Код:
stock SetVehiclePosEx(id, x, y, z, vw, int)
x, y, z parameters must have Float tag.
pawn Код:
stock SetVehiclePosEx(id, Float: x, Float: y, Float: z, vw, int)
In SetVehiclePosEx:
pawn Код:
SetPlayerVirtualWorld(playerid, vw);
Assuming you wanted to set the vehicle's vw but you wrote the above by accident. It should be:
pawn Код:
SetVehicleVirtualWorld(id, vw);
You forgot to add the semicolon (;) at the end of these:
pawn Код:
SetVehiclePos(id, x, y, z)
pawn Код:
SetVehiclePosEx(vehid, x, y, z, vw, int)
Atleast, you could try compiling it first before posting it (I read it from pastebin - I don't know if it's the same for the other link).

Also one suggestion. Instead of declaring and storing to two (kind of pointless) variables that are used only once:
pawn Код:
new vw = GetPlayerVirtualWorld(playerid);
new int = GetPlayerInterior(playerid);
SetVehiclePosEx(vehid, x, y, z, vw, int);
You could do that directly:
pawn Код:
SetVehiclePosEx(vehid, x, y, z, GetPlayerVirtualWorld(playerid), GetPlayerInterior(playerid));
Reply


Messages In This Thread
SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 13:46
Re: SendVehicleToPlayer.inc - by newbie scripter - 04.01.2014, 13:53
Re: SendVehicleToPlayer.inc - by fiki574 - 04.01.2014, 14:06
Re: SendVehicleToPlayer.inc - by Konstantinos - 04.01.2014, 14:20
Re: SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 14:23
Re: SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 14:28
Re: SendVehicleToPlayer.inc - by iZN - 04.01.2014, 17:03
Re: SendVehicleToPlayer.inc - by Abagail - 04.01.2014, 17:07
Re: SendVehicleToPlayer.inc - by newbie scripter - 05.01.2014, 04:06
Re: SendVehicleToPlayer.inc - by Abagail - 05.02.2014, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)