Issue with kicking players from an event
#4

Quote:
Originally Posted by Hansrutger
View Post
Make a sscanf before the strcmp to check for even more parameters, but make it optional so it doesn't have to be included.


(https://sampforum.blast.hk/showthread.php?tid=570927)

So simply:
Code:
new subcmd[10], subcmdval[128];
if (sscanf(params, "s[10]S()[128]", subcmd, subcmdval))
{
	//Return something if user doesn't put it anything for "s[10]"!
}

if (strcmp(subcmd, "kick", true))
{
	new targetid;
	if (sscanf(subcmdval, "u", targetid))
	{
		//Return something if user did "/cmd kick" but didn't put any value afterwards!
	}
        // Continue what happens if id was given
}
Hey there, thanks for the reply. I have tried what you have suggested but it still does not seem to work.

Have you got another solution?

Thanks!
Reply


Messages In This Thread
Issue with kicking players from an event - by FunnyBear - 10.12.2016, 17:30
Re: Issue with kicking players from an event - by iLearner - 10.12.2016, 18:33
Re: Issue with kicking players from an event - by Hansrutger - 10.12.2016, 19:28
Re: Issue with kicking players from an event - by FunnyBear - 10.12.2016, 20:32
Re: Issue with kicking players from an event - by Hansrutger - 10.12.2016, 21:01
Re: Issue with kicking players from an event - by NeXoR - 10.12.2016, 21:08
Re: Issue with kicking players from an event - by FunnyBear - 10.12.2016, 21:12
Re: Issue with kicking players from an event - by FunnyBear - 10.12.2016, 21:16
Re: Issue with kicking players from an event - by Yaa - 10.12.2016, 21:27
Re: Issue with kicking players from an event - by FunnyBear - 10.12.2016, 21:31

Forum Jump:


Users browsing this thread: 2 Guest(s)