ZCMD 2 commands
#1

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
Reply
#2

You mean something like this?

pawn Код:
command(mycommand1, playerid, params[])
{
  // code.
  return true;
}

command(mycommand2, playerid, params[])
{
  return cmd_mycommand1(playerid, params);
}
Reply
#3

no no , he want like 2 commands to do the same thing ...

Eg(strcmp)

pawn Код:
if(!strcmp(cmdtext,"/help",true) || !strcmp(cmdtext,"/he",true))
Reply
#4

Quote:
Originally Posted by Щә яә Ґя
no no , he want like 2 commands to do the same thing ...
And what do you think my code does..?
Reply
#5

I though he want a new function , like his example ...
Reply
#6

Thanks You:
Don Correlli !
Reply
#7

So i guess i was right?

You're welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)