Help command with categories.
#3

Quote:
Originally Posted by HazardouS
Посмотреть сообщение
You should use sscanf plugin with your ZCMD commands to delimitate parameters easier.
https://sampforum.blast.hk/showthread.php?tid=120356

The first parameter is stored in params[0], the second one is stored in params[1] and so on. Also, you should use "strcmp", not "==".
pawn Код:
if(strcmp(params[0], "general", true) == 0) //or !strcmp(params[0], "general", true)
{
    //player typed "/help general"
}
Okay, but how would I do it with sscanf?
I already have sscanf. Sorry for not telling it.
Reply


Messages In This Thread
Help command with categories. - by xX4m4zingXx - 28.01.2015, 20:04
Re: Help command with categories. - by HazardouS - 28.01.2015, 20:43
Re: Help command with categories. - by xX4m4zingXx - 28.01.2015, 21:44
Re: Help command with categories. - by xX4m4zingXx - 29.01.2015, 15:25
AW: Help command with categories. - by Nero_3D - 29.01.2015, 15:43
Re: AW: Help command with categories. - by xX4m4zingXx - 29.01.2015, 16:27
AW: Re: AW: Help command with categories. - by Nero_3D - 29.01.2015, 17:45
Re: AW: Re: AW: Help command with categories. - by xX4m4zingXx - 29.01.2015, 19:53
Re: Help command with categories. - by Sime30 - 29.01.2015, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)