park of statechange not working
#1

Hey I just want to ask if anyone would know why this isnt working?

pawn Код:
else if(IsSkipperVehicle(vehicleid))
        {
            if(PlayerInfo[playerid][pJob] == JOB_SKIPPER || PlayerInfo[playerid][pVIPJob] == JOB_SKIPPER)
            {
                GameTextForPlayer(playerid, "~y~Drive to the ~r~marker~y~ to~n~deliver the packages",5000,3);
            }
        }
I have other stuff above that like if your in a trucker vehicle etc they all work. Im thinking its the stock maybe?

pawn Код:
stock IsSkipperVehicle(vehicleid)
{
    for(new i=0; i<3; i++)
    {
        if(vehicleid == JobInfo[JOB_SKIPPER][jSkipper][i]) return 1;
    }
    return 0;
}
There are 3 skipper boats. Here is the creation of them:
pawn Код:
JobInfo[JOB_SKIPPER][jSkipper][0] = CreateVehicle(452, 718.7248, -1495.5220, 0.7399, 180.0000, 3, 1, 1200);
    JobInfo[JOB_SKIPPER][jSkipper][1] = CreateVehicle(452, 728.0000, -1495.5220, 0.7399, 180.0000, 3, 1, 1200);
    JobInfo[JOB_SKIPPER][jSkipper][2] = CreateVehicle(452, 732.0000, -1495.5220, 0.7399, 180.0000, 3, 1, 1200);
with this under enum: jSkipper[3]

Can someone please help me out and tell me what im doing wrong, just trying to setup the rest of my boating mission. Thanks heaps guys..
Reply
#2

The problem wasnt with the stock but with a duplication in code that I hadnt realised id made.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)