SERVER:UNKNOWN COMMAND
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/help", cmdtext, true) == 0)
	{
		ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Help Menu", "Commands \nFAQs \nTutorials \nCommunity", "Select", "Cancel");
	}

	if (strcmp("/commands", cmdtext, true)== 1)
	{
	    ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Commands", "General Commands \nChat Commands \nAnimation Commands \nGroup Commands \nPremium Commands\
				\nHelper Commands \nStaff Commands", "Select", "Cancel");
	}

	if (strcmp("/cmds", cmdtext, true) == 2)
	{
		ShowPlayerDialog(playerid, 21, DIALOG_STYLE_LIST, "Commands", "General Commands \nChat Commands \nAnimation Commands \nGroup Commands \nPremium Commands\
				\nHelper Commands \nStaff Commands", "Select", "Cancel");
		return 1;
	}
	return 0;
}
The command works, but still it ays "Server: Unknown Command" when I input the command. Can anyone tell me what is wrong here? Thanks!
Reply


Messages In This Thread
SERVER:UNKNOWN COMMAND - by DarkMythHunter - 02.05.2018, 04:26
Re: SERVER:UNKNOWN COMMAND - by andrejc999 - 02.05.2018, 07:46
Re: SERVER:UNKNOWN COMMAND - by Flashhiee - 02.05.2018, 09:23
Re: SERVER:UNKNOWN COMMAND - by DarkMythHunter - 02.05.2018, 09:29
Re: SERVER:UNKNOWN COMMAND - by Flashhiee - 02.05.2018, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)