SA-MP Forums Archive
What is wrong with this command? - 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: What is wrong with this command? (/showthread.php?tid=610039)



What is wrong with this command? - MayaEU - 19.06.2016

nevermind figured out


Re: What is wrong with this command? - MayaEU - 19.06.2016

edited


Re: What is wrong with this command? - Vince - 19.06.2016

Question: why don't you use OnPlayerEnterCheckpoint and/or IsPlayerInCheckpoint? Ideally sets of coordinates are also stored in a single place and referenced from that single place. Copying sets of coordinates often leads to inconsistencies and annoying bugs. Like seems to be the case here. Checkpoint gets set to this location:
PHP код:
SetPlayerCheckpoint(playerid2116.9177,-1785.6226,13.38673.0); 
and then you check if the player is in this location:
PHP код:
if(IsPlayerInRangeOfPoint(playerid,3.0,2104.2502,-1806.3750,13.5547))