A multi-command.
#2

What do you mean by multi-command? Like 3 commands with the same code script or?
If so then try strcmp and use OR operator ( || ):


pawn Код:
//under OnPlayerCommand
new cmd[256], idx;
cmd = strtok(cmdtext, idx);


if(strcmp(cmd, "/command1", true) == 0 || strcmp(cmd, "/command2", true) == 0 || strcmp(cmd, "/command3", true) == 0)
{
    //Codes here
}
Reply


Messages In This Thread
A multi-command. - by iGetty - 08.07.2011, 14:35
Re: A multi-command. - by Rolyy - 08.07.2011, 15:24
Re: A multi-command. - by iGetty - 08.07.2011, 15:25
Re: A multi-command. - by Rolyy - 08.07.2011, 15:28
Re: A multi-command. - by iGetty - 08.07.2011, 15:28
Re: A multi-command. - by Wesley221 - 08.07.2011, 15:30
Re: A multi-command. - by Rolyy - 08.07.2011, 15:43
Re: A multi-command. - by Donya - 08.07.2011, 15:56
Re: A multi-command. - by Rolyy - 08.07.2011, 16:01
Re: A multi-command. - by Donya - 08.07.2011, 16:10

Forum Jump:


Users browsing this thread: 1 Guest(s)