zcmd? - 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)
+--- Thread: zcmd? (
/showthread.php?tid=387920)
zcmd? -
Glad2BeHere - 26.10.2012
usual people put
can i do this instead?
Код:
CMD:ticket(playerid, params[],string[128])
Re: zcmd? -
Catalyst- - 26.10.2012
Of course you can... seems a bit pointless, but it still works.
Re: zcmd? -
RedFusion - 26.10.2012
I don't think that works, just put
below your commandline
Re: zcmd? -
Glad2BeHere - 26.10.2012
Fusion i meant that instead of doing what you recommend if i can put in into the command thing 4 zcmd ... -_-
Re: zcmd? -
RedFusion - 26.10.2012
Why would you want to do that anyway? it's one additional line, not that big of a deal
Re: zcmd? -
Glad2BeHere - 26.10.2012
I am exploring how to use zcmd so i was wondering
Re: zcmd? -
Skillet` - 26.10.2012
What Catalyst said.
Re: zcmd? -
Catalyst- - 26.10.2012
Quote:
Originally Posted by Skillet`
No,you can't.
|
Why can't he? Doing so does the exact same thing. Please explain, seeing as though you're so sure.
Re: zcmd? -
Skillet` - 26.10.2012
You can't because Zeex made the structure using a define,you'll need to add such an option by yourself if you want to use the command proccecor like that.
zcmd.inc
pawn Код:
#define COMMAND:%1(%2) \
forward cmd_%1(%2); \
public cmd_%1(%2)
#define CMD:%1(%2) \
COMMAND:%1(%2)
#define command(%1,%2,%3) \
COMMAND:%1(%2, %3)
#define cmd(%1,%2,%3) \
COMMAND:%1(%2, %3)
you'll need to make something like : (untested)
pawn Код:
#define COMMAND:%1(%2,%3[%4]) \
forward cmd_%1(%2); \
public cmd_%1(%2) \
new %3[%4];
#define CMD:%1(%2,%3[%4]) \
COMMAND:%1(%2,%3[%4])
#define command(%1,%2,%3) \
COMMAND:%1(%2, %3)
#define cmd(%1,%2,%3) \
COMMAND:%1(%2, %3)
Re: zcmd? -
Catalyst- - 26.10.2012
Quote:
Originally Posted by Skillet`
You can't because Zeex made the structure using a define,you'll need to add such an option by yourself if you want to use the command proccecor like that.
|
But what I'm asking is; It DOES work, so why can't he use it?
Nothing at all would need to be changed.