Quote:
Originally Posted by Y_Leѕѕ
I don't really like macros with function names in the brackets as it makes them look like parameters, which can be confusing, however until recently I didn't have a better solution, but I do now so if people want:
pawn Код:
#define ZCMD:%1(%2) forward zcmd_%1(%2);public zcmd_%1(%2)
Then you just do:
pawn Код:
ZCMD:ban(playerid, cmdtext[]) { // Code goes here }
Obviously the current method works perfectly fine, I just prefer this method as I think it looks nicer and it's more explicit as to what's going on and what are parameters and what is the function name.
|
I like that method, infact. I'm going to use this one with a lil change.