not work?
#1

IsObjectInArea

Код:
stock IsObjectInArea(objectid, Float:minx, Float:maxx, Float:miny, Float:maxy) {
new Float:x, Float:y, Float:z; GetObjectPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1; return 0; }
Reply
#2

Quote:
Originally Posted by Bogdanovic
Посмотреть сообщение
IsObjectInArea

Код:
stock IsObjectInArea(objectid, Float:minx, Float:maxx, Float:miny, Float:maxy) {
new Float:x, Float:y, Float:z; GetObjectPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1; return 0; }
why don't work...?

Please Help, Thanks Advanced
You should really work on your indentation and stuff. Try if this works:

pawn Код:
IsObjectInArea(objectid, Float:minx, Float:maxx, Float:miny, Float:maxy) {
     new Float:x, Float:y, Float:z;
     GetObjectPos(playerid, x, y, z);
     if (x > minx && x < maxx && y > miny && y < maxy) return 1;
     else return 0;
}
Reply
#3

Quote:

IsObjectInArea(objectid, Float:minx, Float:maxx, Float:miny, Float:maxy) {
new Float, Float:y, Float:z;
GetObjectPos(objectid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
else return 0;
}

Mmmh Nothing...

With a comand Set the Object in Area, and Start the Function with SetTimer -->

public ControlObject() {
if(IsObjectInArea(GOLF, * Pos GangZone *)) { SendClientMessageToAll(GREEN, "Object in Area..."); }
if(!IsObjectInArea(GOLF, * Pos GangZone *)) { SendClientMessageToAll(RED, "Object Not in Area..."); } }
Reply
#4

....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)