Ship Problem error
#9

Easy fix, you dont have the ship route points to two. so make
pawn Код:
#define NUM_SHIP_ROUTE_POINTS   25
//change it to how many route points you have so 2
#define NUM_SHIP_ROUTE_POINTS   2
and change this line
pawn Код:
new Float:gShipRoutePoints[NUM_SHIP_ROUTE_POINTS][2] = {
//change that too
new Float:gShipRoutePoints[NUM_SHIP_ROUTE_POINTS][6] = {
Change that to 6 cause on your route points you have x, y, z, rx, ry, rz

then to stop the ship at route 1 put this under OnObjectMoved
pawn Код:
if(gShipCurrentPoint == 1) {
        SendClientMessageToAll(0xFFFF0000, "Ferry ship as stopped!!");
        SendClientMessageToAll(0xFFFF0000, "****Estimated departure in 1 minute****");
        StopObject(gMainShipObjectId);//forgot to add this or your ship wont stop
        SetTimer("StartMovingTimer",60*1000,0); // pause at route 1 for 1 minute
        return 1;
    }
I have the same exact sript i modifyed that came with the 3d server package exept mine has 56 route points lol
Reply


Messages In This Thread
Ship Problem error - by [LHT]Bally - 29.04.2012, 23:12
Re: Ship Problem error - by Admigo - 29.04.2012, 23:21
Re: Ship Problem error - by [LHT]Bally - 29.04.2012, 23:22
Re: Ship Problem error - by Admigo - 29.04.2012, 23:25
Re: Ship Problem error - by AdvancedMapper - 29.04.2012, 23:25
Re: Ship Problem error - by [LHT]Bally - 29.04.2012, 23:26
Re: Ship Problem error - by TheDominator - 29.04.2012, 23:29
Re: Ship Problem error - by AdvancedMapper - 29.04.2012, 23:41
Re: Ship Problem error - by nickdodd25 - 30.04.2012, 00:10
Re: Ship Problem error - by sniperwars - 07.05.2012, 21:49
Re: Ship Problem error - by Viniborn - 07.05.2012, 21:57

Forum Jump:


Users browsing this thread: 3 Guest(s)