Error Checkpoint - 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: Error Checkpoint (
/showthread.php?tid=422375)
Error Checkpoint -
Scott Zulkifli - 13.03.2013
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 6, -1548.087524, 123.590423, 3.554687) || !IsPlayerInRangeOfPoint(playerid, 6, 2158.0596,-2294.5938,13.4570) || !IsPlayerInRangeOfPoint(playerid, 6, 2188.0466,-2264.9756,13.4770))
{// In the case the player finds a way to exploit the checkpoint to different location
CancelTruckDelivery(playerid);
SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
return 1;
}
each of the checkpoint was, would always bring up: ERROR: Wrong checkpoint entered. Truck delivery canceled completely.
while checkpoint was set right.
Re: Error Checkpoint -
Scrillex - 13.03.2013
Remove !~and it will work.. Because ! = wrong!
Hate : This forum requires that you wait 120 seconds between posts. Please try again in 41 seconds.
Re: Error Checkpoint -
Scott Zulkifli - 13.03.2013
I mean, if not a checkpoint checkpoint other than that, it means not to be.