24.02.2009, 18:10
Hello,
Doing some work on my new ferry system, I encountered a very strange problem I never encountered before..
This is the code:
Don't wory about the if's, they work. The problem is the SetVehiclePos. I have a tropic spawning at the filterscript start:
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..?
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); } }
Код:
tropic = CreateVehicle(454,434.7200,-2412.5276,0.4428,43.7188,26,26,999); // TropicCove
Any suggestions..?