park of statechange not working - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: park of statechange not working (
/showthread.php?tid=361918)
part of statechange not working -
oblexive - 22.07.2012
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..
Re: park of statechange not working -
oblexive - 23.07.2012
The problem wasnt with the stock but with a duplication in code that I hadnt realised id made.