22.11.2017, 20:42
The thing I don't understand is that %8$ before each "cmd_".
I'm wondering how the compiler consider "u@(u[_:%0 u@$" ? as a variable?
PHP код:
#define CMD: __:CMD_1:CMD_2:CMD_3:$
#define CMD_1:CMD_2:CMD_3:%8$%1[%2](%3) %8$cmd_%1(%3) <cmd_state: %2>
#define CMD_2:CMD_3:%8$%1{%2}(%3) %8$cmd_%1(%3) if (Is%2(playerid))
#define CMD_3:%8$%1(%3) %8$cmd_%1(%3)
PHP код:
u@(u[_:CMD_1: 0]);cmd_ban(playerid, params[]) if (IsAdmin(playerid))
{
return 1;
}