ZCMD 2 commands - 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: ZCMD 2 commands (
/showthread.php?tid=113550)
ZCMD 2 commands -
rcwarez - 14.12.2009
As zcmd give one code to the two commands?
example
is
Код:
command(command, playerid, cmdtext[])
{
new lol;
lol=1;
return 1;
}
i want to
Код:
command(command, command2, playerid, cmdtext[])
{
new lol;
lol=1;
return 1;
}
or something else / similar
Re: ZCMD 2 commands -
Correlli - 14.12.2009
You mean something like this?
pawn Код:
command(mycommand1, playerid, params[])
{
// code.
return true;
}
command(mycommand2, playerid, params[])
{
return cmd_mycommand1(playerid, params);
}
Re: ZCMD 2 commands -
MJ! - 14.12.2009
no no , he want like 2 commands to do the same thing ...
Eg(strcmp)
pawn Код:
if(!strcmp(cmdtext,"/help",true) || !strcmp(cmdtext,"/he",true))
Re: ZCMD 2 commands -
Correlli - 14.12.2009
Quote:
Originally Posted by Щә яә Ґя
no no , he want like 2 commands to do the same thing ...
|
And what do you think my code does..?
Re: ZCMD 2 commands -
MJ! - 14.12.2009
I though he want a new function , like his example ...
Re: ZCMD 2 commands -
rcwarez - 14.12.2009
Thanks You:
Don Correlli !
Re: ZCMD 2 commands -
Correlli - 14.12.2009
So i guess i was right?
You're welcome.