[SOLVED] command with else etc.
#2

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/acp", cmdtext, true,4) == 0) // '/acp' has 4 characters not 10
	{
		if(IsPlayerAdmin(playerid)); //you fogot an 'if'
		{
			ShowMenuForPlayer(AdminMenu,playerid);
			return 1;
		}
		else SendClientMessage(playerid, 0xFFFFFFFF, "You need to be admin for this command");
	}
	//not here lol
	return 0;
}
Reply


Messages In This Thread
[SOLVED] command with else etc. - by security - 06.01.2010, 17:54
Re: command with else etc. - by GTAguillaume - 06.01.2010, 17:55
Re: command with else etc. - by ClanDBZVegeta - 06.01.2010, 18:00
Re: command with else etc. - by security - 06.01.2010, 18:01
Re: command with else etc. - by [03]Garsino - 06.01.2010, 18:04
Re: command with else etc. - by security - 06.01.2010, 18:07
Re: command with else etc. - by security - 06.01.2010, 18:08
Re: command with else etc. - by [03]Garsino - 06.01.2010, 18:09
Re: command with else etc. - by adsy - 06.01.2010, 18:09
Re: command with else etc. - by security - 06.01.2010, 18:15

Forum Jump:


Users browsing this thread: 1 Guest(s)