Need Help With IsVehicleInArea
#1

Hello , i need some help

i got function

pawn Код:
IsVehicleInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
    new Float:x, Float:y, Float:z;
    GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
    if (x > minx && x < maxx && y > miny && y < maxy) return 1;
    return 0;
}
i made the gangzone

and added coords

pawn Код:
if(IsVehicleInArea(g, -2101.701171, -283.088439, -2013.701171, -91.088455)
but i want it to show all the players a text who is on the area.

but when i leave at area then it still shows gametext.

i got timer updater working too..

The Gangzone

pawn Код:
GangZoneCreate(-2101.701171, -283.088439, -2013.701171, -91.088455);
can someone help me to put coords rightly ?
i think there is something wrong with coords.


repping too please help :P
Reply
#2

the coords you are using in your function should be alright... you could try showing us the timer with the msg
Reply
#3

i got fixed it , the problem was at the playerid , i changed it to the playerid value and to IsPlayerInArea ..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)