22.07.2012, 19:32
Hey I just want to ask if anyone would know why this isnt working?
I have other stuff above that like if your in a trucker vehicle etc they all work. Im thinking its the stock maybe?
There are 3 skipper boats. Here is the creation of them:
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..
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);
}
}
pawn Код:
stock IsSkipperVehicle(vehicleid)
{
for(new i=0; i<3; i++)
{
if(vehicleid == JobInfo[JOB_SKIPPER][jSkipper][i]) return 1;
}
return 0;
}
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);
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..