HELP MACRO, IsPlayerInArea - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HELP MACRO, IsPlayerInArea (
/showthread.php?tid=190191)
HELP MACRO, IsPlayerInArea -
[H]265 - 14.11.2010
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.
Re: HELP MACRO, IsPlayerInArea -
Finn - 14.11.2010
You cannot make a working macro for that, just make it a normal function.
Re: HELP MACRO, IsPlayerInArea -
Osviux - 14.11.2010
Try to change it into IsPlayerInRangeOfPoint
Re: HELP MACRO, IsPlayerInArea -
[H]265 - 14.11.2010
Quote:
Originally Posted by Finn
You cannot make a working macro for that, just make it a normal function.
|
Maybe you have right