SA-MP Forums Archive
IsPlayerBetweenTwoPoints problem - 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: IsPlayerBetweenTwoPoints problem (/showthread.php?tid=663579)



IsPlayerBetweenTwoPoints problem - Kraeror - 05.02.2019

It doesn't work:
PHP код:
stock IsPlayerBetweenTwoPoints(playeridFloat:minxFloat:maxxFloat:minyFloat:maxy)
{
    new 
Float:xxFloat:yyFloat:zz;
    
GetPlayerPos(playeridxxyyzz);
    if (
xx minx && xx maxx && yy miny && yy maxy) return 1;
    return 
0;

I'm using here:
PHP код:
if(IsPlayerBetweenTwoPoints(playerid, -458.4307,-1874.7341, -423.1204,-1845.1359))
    {
code
Please help me


Re: IsPlayerBetweenTwoPoints problem - Kraeror - 05.02.2019

solved!