SetVehiclePos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SetVehiclePos (
/showthread.php?tid=66840)
SetVehiclePos -
neosy - 24.02.2009
Hello,
Doing some work on my new ferry system, I encountered a very strange problem I never encountered before..
This is the code:
Код:
public boot()
{
new uur,minuut,seconde;
gettime(uur,minuut,seconde);
if (minuut ==0)
{
SetVehiclePos(tropic,-2961.1079,3517.7212,-0.4818);
}
else if (minuut ==15)
{
SetVehiclePos(tropic,434.7200,-2412.5276,0.4428);
}
else if (minuut ==30)
{
SetVehiclePos(tropic,-2961.1079,3517.7212,-0.4818);
}
else if (minuut ==45)
{
SetVehiclePos(tropic,434.7200,-2412.5276,0.4428);
}
}
Don't wory about the if's, they work. The problem is the SetVehiclePos. I have a tropic spawning at the filterscript start:
Код:
tropic = CreateVehicle(454,434.7200,-2412.5276,0.4428,43.7188,26,26,999); // TropicCove
At the loading it spawns at the right place, but it never moves to the new one when it should. If I would for example add a SendClientMessage, I'd see it, so the if's are correct.
Any suggestions..?
Re: SetVehiclePos -
beckzy - 24.02.2009
http://forum.sa-mp.com/index.php?topic=82288.0