IsObjectInArea
#8

This is soo weird :S.. Could somebody help me?..

I have this:

pawn Код:
GangZoneCreate(2563.775634,539.454345,2645.808349,397.840759);
and

pawn Код:
if(IsObjectInArea(Football, 2645.808349, 2563.775634, 397.840759, 539.454345))
pawn Код:
stock IsObjectInArea(objectid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
    new Float:X, Float:Y, Float:Z;
    GetObjectPos(objectid, X, Y, Z);
    if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
    return 0;
}
I tried with an other area X Y, and that works.. Well, it looks like something is wrong with my gangzone (?)

Could somebody check whats wrong :S?
Reply


Messages In This Thread
IsObjectInArea - by rbN. - 25.08.2010, 08:34
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 08:47
Re: IsObjectInArea - by rbN. - 25.08.2010, 08:50
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 08:54
Re: IsObjectInArea - by rbN. - 25.08.2010, 08:59
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 09:52
Re: IsObjectInArea - by rbN. - 25.08.2010, 10:24
Re: IsObjectInArea - by rbN. - 25.08.2010, 11:03
Re: IsObjectInArea - by ғαιιοцт - 25.08.2010, 11:17

Forum Jump:


Users browsing this thread: 1 Guest(s)