SA-MP Forums Archive
Macro problem... - 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: Macro problem... (/showthread.php?tid=72875)



Macro problem... - Fire Dragon - 11.04.2009

I did created this function,

pawn Код:
#define CreateGate(%1,%2,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13) \
do{new %2 = CreateObject(%1, %3, %4, %5, %6, %7, %8); \
if(!strcmp(cmdtext,%12,true,strlen(%12))){ MoveObject(%2, %9, %10, %11, 5); return 1; } \
if(!strcmp(cmdtext,%13,true,strlen(%12))){ MoveObject(%2, %3, %4, %5, 5); return 1; }} while(FALSE)
but it don't works... Way ?



Re: Macro problem... - Fire Dragon - 11.04.2009

Anyone know ?


Re: Macro problem... - yezizhu - 11.04.2009

Look into pawn-lang.pdf, it says only support '%1' to '%9'
Idk how to fix...