16.10.2011, 13:03
Quote:
You can't just say that with no reason. You want a more advanced command processor, but don't want to use a more advanced command processor - care to explain the logic there? ZCMD is quick and simple, YCMD is more feature packed to support things like this.
So unless you can give a good reason why not, I am just going to say "use YCMD" anyway: Use YCMD! |
I like zcmd more cos its simple...i like my code look's clean and and i think i can make these level check rely easy with a macro...
Here is what i have so far but its fail....
pawn Код:
#define LevelCheck(%0,%1)\
do{\
if(pInfo[%0][pLevel] < %1) return SendError(%0, "You are not allowed to use that command");\
}\
while(False)
#define ADMCMD:%0(%1,%2,%3)\
forward cmd_%0(%1,%2); \
public cmd_%0(%1,%2)\
do{\
LevelCheck(%1, %3);\
}\
while(False)
stock
bool:False = false,
STR[128];