SetVehiclePos
#1

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

http://forum.sa-mp.com/index.php?topic=82288.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)