Fast rcon command processor: RCMD (modified DCMD)
#5

Quote:

Known bugs:
Somehow you can use rcmd commands if you use /, !, ? or any other character in front of the command.

That's not a bug.I guess the only thing you have changed is "dcmd" to "rcmd" in the definition.

Quote:

#define rcmd(%1,%2,%3) if((strcmp((%3)[1], #%1, true, (%2)) == 0)

You should change it to
Quote:

#define rcmd(%1,%2,%3) if((strcmp((%3)[0], #%1, true, (%2)) == 0)

or
Quote:

#define rcmd(%1,%2,%3) if((strcmp((%3), #%1, true, (%2)) == 0)

to make it work without any character before the command name.DCMD ignores the first character as in OnPlayerCommandText() it is always '/'.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)