[Include] mcmd - Command processor!
#6

Quote:
Originally Posted by DiddyBop
View Post
copy of dcmd? renamed to mcmd? is this any faster then dcmd at least..?
Shut up, you should see the codes:

pawn Code:
#define mcmd(%0,%1,%2,%3) \
        if (!strcmp(#%0, %1, true, (%2))) mcmd_%0((%3), %1[(%2) + 1])

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

Edit:
mcmd is like a dcmd. Isn't a copy in scripting, I made it.
dcmd is much longer than mcmd. I don't know if dcmd is best, but I like what I made.

Edit 2:
mcmd_init removes the "/" and then mcmd checks if the command is = to the function, then it calls the function. I don't know what does dcmd, but I think mcmd is too much simple than dcmd.
Reply


Messages In This Thread
mcmd - Command processor! - by MrDeath537 - 29.08.2010, 09:45
Re: mcmd - Command processor! - by Agent Smith - 29.08.2010, 09:53
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 09:56
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 10:09
Re: mcmd - Command processor! - by DiddyBop - 29.08.2010, 10:27
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 10:31
Re: mcmd - Command processor! - by Grim_ - 29.08.2010, 10:55
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 10:57
Re: mcmd - Command processor! - by Calgon - 29.08.2010, 11:07
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 11:09
Re: mcmd - Command processor! - by Y_Less - 29.08.2010, 11:10
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 11:11
Re: mcmd - Command processor! - by playbox12 - 29.08.2010, 11:41
Respuesta: mcmd - Command processor! - by Jesus^ - 29.08.2010, 11:48
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 11:50
Re: mcmd - Command processor! - by ziomal432 - 29.08.2010, 11:51
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 12:02
Re: mcmd - Command processor! - by Y_Less - 29.08.2010, 15:56
Re: mcmd - Command processor! - by MrDeath537 - 29.08.2010, 22:05
Re: mcmd - Command processor! - by Y_Less - 29.08.2010, 23:16
Re: mcmd - Command processor! - by DiddyBop - 29.08.2010, 23:30
Re: mcmd - Command processor! - by Wesk3R - 30.08.2010, 01:30
Re: mcmd - Command processor! - by Simon - 30.08.2010, 02:12
Re: mcmd - Command processor! - by Norn - 30.08.2010, 02:14
Re: mcmd - Command processor! - by MrDeath537 - 30.08.2010, 02:37
Re: mcmd - Command processor! - by Kitten - 30.08.2010, 02:58
Re: mcmd - Command processor! - by MrDeath537 - 30.08.2010, 03:15
Re: mcmd - Command processor! - by Calgon - 30.08.2010, 03:44
Re: mcmd - Command processor! - by MrDeath - 30.08.2010, 04:34
Re: mcmd - Command processor! - by F_Lexx - 18.09.2010, 20:05
Re: mcmd - Command processor! - by Voldemort - 18.09.2010, 20:53
Respuesta: Re: mcmd - Command processor! - by MrDeath - 18.09.2010, 21:54
Re: mcmd - Command processor! - by RenisiL - 20.09.2010, 13:14
Respuesta: mcmd - Command processor! - by xenowort - 20.09.2010, 18:33
Re: mcmd - Command processor! - by Ricop522 - 04.03.2011, 22:29
Re: mcmd - Command processor! - by Steven82 - 05.03.2011, 10:23
Re: mcmd - Command processor! - by Montis123 - 05.03.2011, 12:07

Forum Jump:


Users browsing this thread: 2 Guest(s)