Macros problem
#1

pawn Код:
#define     SetPlayerPosCircle(%0,%1,%2,%3,%4)      \
                new                                 \
                    rr = random ( %4 ),             \
                    ra = random ( 360 );            \
                SetPlayerPos ( %0, %1 + ( floatsin ( ra, degrees ) * rr ) , %2 + ( floatcos ( ra, degrees ) * rr ) , %3 )
Why I get error, when I'm trying to use this function?

pawn Код:
#define     MAIN_SPAWN      0.0, 0.0, 6.0

SetPlayerPosCircle ( playerid, MAIN_SPAWN, 5 );
Error:
Код:
error 017: undefined symbol "SetPlayerPosCircle"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
what's wrong with this?
Reply


Messages In This Thread
[ Fixed ] Macros problem - by Scottas - 28.08.2010, 17:18
Re: Macros problem - by Voldemort - 28.08.2010, 17:44
Re: Macros problem - by [XST]O_x - 28.08.2010, 17:48
Re: Macros problem - by Scottas - 28.08.2010, 18:01
Re: Macros problem - by Scottas - 28.08.2010, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)