Multiple entries(?)
#4

Quote:
Originally Posted by ryanhawk31
Посмотреть сообщение
Here you go

Код:
CMD:test(playerid, params[])
{
	if(isnull(params))
	{
		SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /test (1 - 3)");
		return 1;
	}
	if(strcmp(params, "1", true)
	{
                SendClientMessage(playerid, COLOR_RED, "This is /test 1");
	}
	if(strcmp(params, "3", true)
	{
                SendClientMessage(playerid, COLOR_RED, "This is /test 2");
	}
	if(strcmp(params, "4", true)
	{
                SendClientMessage(playerid, COLOR_RED, "This is /test 3");
	}
}
This is unfortunately not working.
For the record, I am using sscanf and ZCMD.
Reply


Messages In This Thread
Multiple entries(?) - by BigGroter - 19.04.2013, 15:29
Re: Multiple entries(?) - by ryanhawk31 - 19.04.2013, 15:32
Re: Multiple entries(?) - by z3r0w1zard - 19.04.2013, 15:32
Re: Multiple entries(?) - by BigGroter - 19.04.2013, 16:05
Re: Multiple entries(?) - by BigGroter - 19.04.2013, 16:08
Re: Multiple entries(?) - by BigGroter - 19.04.2013, 16:34

Forum Jump:


Users browsing this thread: 1 Guest(s)