dcmd? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dcmd? (
/showthread.php?tid=67010)
dcmd? -
ғαιιοцт - 26.02.2009
can anyone explain me what this actually does?
Код:
#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
i don't really understand
Re: dcmd? -
Mikep - 26.02.2009
Adds dcmd.
Re: dcmd? -
ғαιιοцт - 26.02.2009
thank you Mikep now i understand everything about dcmd
no, i mean how does the code work?
i see numbers in it.. %1, %2 and %3 ... what do they do there?
Re: dcmd? -
Mikep - 26.02.2009
Yeah I know lol.
%1 blabla carries over parameters, like
#define IsPlayerNotAdmin(%1) !IsPlayerAdmin(%1)
I think.
Re: dcmd? -
ғαιιοцт - 26.02.2009
should i just accept the code and not-understand it?
Re: dcmd? -
Joe Staff - 26.02.2009
yes
Re: dcmd? -
Mikep - 26.02.2009
Thats what I do.
Re: dcmd? -
ғαιιοцт - 26.02.2009
why should i use dcmd? they say it's faster, but isn't a normal command fast enough?
Re: dcmd? -
FUNExtreme - 26.02.2009
Check my tutorial about dcmd and sscanf and click on more info. You'll get your answer.
Re: dcmd? -
ғαιιοцт - 26.02.2009
Quote:
Originally Posted by FUNExtreme
Check my tutorial about dcmd and sscanf and click on more info. You'll get your answer.
|
thx