HELP MACRO, IsPlayerInArea
#1

pawn Код:
#define IsPlayerInArea(%0,Float:%1,Float:%2,Float:%3,Float:%4) \
    do \
    { \
      new \
         Float:X, \
         Float:Y, \
         Float:Z \
      ; \
      GetPlayerPos(%0, Float:X, Float:Y, Float:Z); \
      if(Float:X > Float:%1 && Float:X < Float:%2 && Float:Y > Float:%3 && Float:Y < Float:%4) { \
      return true; } \
      else \
      return false; \
    } \
    while(FALSE)
i trying to make FNC IsPlayerInArea what will checking if is player in some area, example:

pawn Код:
if(IsPlayerInArea(i, 2161.745, 2009.456, 1999.311, 1825.248))
But i get this error:

Код:
error 017: undefined symbol "IsPlayerInArea"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

You cannot make a working macro for that, just make it a normal function.
Reply
#3

Try to change it into IsPlayerInRangeOfPoint
Reply
#4

Quote:
Originally Posted by Finn
Посмотреть сообщение
You cannot make a working macro for that, just make it a normal function.
Maybe you have right
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)