Modifing ZCMD
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
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 know that YCMD have many..many..futures and yes its best command processor i know (compare speed and futures)
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];
Reply


Messages In This Thread
Modifing ZCMD - by DRIFT_HUNTER - 16.10.2011, 12:26
Re: Modifing ZCMD - by DRIFT_HUNTER - 16.10.2011, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)