isplayerinarea
#10

IsPlayerInArea definition:
pawn Код:
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if (x > minx && x < maxx && y > miny && y < maxy) return 1;
    return 0;
}
Note the argument order: minx, maxx, miny, maxy
You have set them to: maxx, miny, minx, maxy
So change
pawn Код:
if(IsPlayerInArea(i, -1861.632, 436.2632, -1626.008, 629.5665))
to
pawn Код:
if(IsPlayerInArea(i, -1626.008, -1861.632, 436.2632, 629.5665))
Reply


Messages In This Thread
isplayerinarea - by Headshot1108 - 28.03.2009, 00:04
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 01:10
Re: isplayerinarea - by DMSOrg - 28.03.2009, 01:18
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 01:32
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 08:59
Re: isplayerinarea - by hazdog - 28.03.2009, 09:26
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 11:15
Re: isplayerinarea - by On_Top_Non_Stop - 28.03.2009, 12:07
Re: isplayerinarea - by MenaceX^ - 28.03.2009, 12:11
Re: isplayerinarea - by bogeymanEST - 28.03.2009, 12:31
Re: isplayerinarea - by [M2S]moe - 28.03.2009, 12:53
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 15:56
Re: isplayerinarea - by [M2S]moe - 28.03.2009, 19:37
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 20:41
Re: isplayerinarea - by Headshot1108 - 28.03.2009, 20:44
Re: isplayerinarea - by [M2S]moe - 28.03.2009, 21:32
Re: isplayerinarea - by FUNExtreme - 28.03.2009, 22:26
Re: isplayerinarea - by Nero_3D - 28.03.2009, 23:31
Re: isplayerinarea - by Headshot1108 - 29.03.2009, 00:06
Re: isplayerinarea - by Nero_3D - 29.03.2009, 01:14
Re: isplayerinarea - by Headshot1108 - 29.03.2009, 11:05
Re: isplayerinarea - by Nero_3D - 29.03.2009, 11:26

Forum Jump:


Users browsing this thread: 4 Guest(s)