14.11.2010, 14:12
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)
pawn Код:
if(IsPlayerInArea(i, 2161.745, 2009.456, 1999.311, 1825.248))
Код:
error 017: undefined symbol "IsPlayerInArea" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.