Simple things
#8

Quote:
Originally Posted by Joe Staff
That's your command function. Look under OnPlayerCommandText, turn the return 1; at the END of it into return 0;
That is the end, when i add a return 0; under it, it gives me a error -
Code:
error 010: invalid function or declaration
Code:
dcmd_buildmenu(playerid,params[])
{
	#pragma unused params
	if(PlayerInfo[playerid][pAdmin] >= 1)
 	{
		if(RaceBuilders[playerid] == 0)
		{
			SendClientMessage(playerid, COLOR_GREY, "[Error] You are not building a race");
			return 1;
		}
		if(BAirrace[b(playerid)] == 0) SetMenuColumnHeader(MBuild,0,"Air race: Off");
		else SetMenuColumnHeader(MBuild,0,"Air race: On");
		if(!IsValidMenu(MBuild)) CreateRaceMenus();
		TogglePlayerControllable(playerid,0);
		ShowMenuForPlayer(MBuild,playerid);
		return 1;
	}
	else
	{
	SendClientMessage(playerid, COLOR_WHITE, "[Error] Unknown Command.");
	}
	return 1;
}
	return 0;
}
Any help?
Reply


Messages In This Thread
Simple things - by shoru93 - 15.01.2010, 18:35
Re: Simple things - by DeathOnaStick - 15.01.2010, 18:37
Re: Simple things - by shoru93 - 15.01.2010, 18:46
Re: Simple things - by shoru93 - 15.01.2010, 19:08
Re: Simple things - by Joe Staff - 15.01.2010, 20:37
Re: Simple things - by Perker12345 - 15.01.2010, 21:05
Re: Simple things - by Joe Staff - 15.01.2010, 21:09
Re: Simple things - by Perker12345 - 15.01.2010, 21:12
Re: Simple things - by Joe Staff - 15.01.2010, 21:51
Re: Simple things - by GTAguillaume - 15.01.2010, 21:57
Re: Simple things - by shoru93 - 22.01.2010, 22:20

Forum Jump:


Users browsing this thread: 1 Guest(s)