SA-MP Forums Archive
Need help with script. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help with script. (/showthread.php?tid=74675)



Need help with script. - Snyper - 25.04.2009

I am having an issue with my script. I currently have modified two Filterscripts to work accordingly with my Gamemode. One works perfectly well, while my taxi mission seems to be interfering with the two.
I have worked out the normal issues step by step and renames a few "new" functions and "forwards" accordingly, so that both don't interfer with my custom anti money cheat.
However, when I get in my taxi and activate the mission and leave the vehicle, it should normally cancel in 20 seconds. (It was perfectly fine before and worked well)

Quote:

if ((playerTowjob[playerid]>0)&&(warning[playerid]==-1))
{
GameTextForPlayer(playerid,"~w~You have ~r~20 sec ~n~~w~ to enter a ~y~Towtruck",3000,4);
warning[playerid]=SetTimerEx("EndTowJob",20000,0,"%d",playerid);
}

It seems this interfers with this...

Quote:

if ((playerTaxiDrive[playerid]>0)&&(warningTaxi[playerid]==-1))
{
GameTextForPlayer(playerid,"~w~You have ~r~20 sec ~n~~w~ to get a Taxi",3000,4);
warningTaxi[playerid]=SetTimerEx("EndTaxiJob",20000,0,"%d",playerid);
}

I don't see the issue. I suspect it's somewhere else, but honestly... I don't think there should be. My compiler compiles fine, which only an ingame bug.

EDIT: Well, I seem have to fixed the issue with it intering with the towtruck, but it still won't cancel the mission if I leave the vehicle for more then 20 seconds. I find it important because, if said vehicle explodes or something else, the job will autocancel.. without more command typing.