Menu isn't working...
#1

this is dumb. The menu pops up with the code and all, but how come when I hit a menu button it does absolutely nothing?

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
	currentmenu[playerid] = GetPlayerMenu();
	{
		if(currentmenu[playerid] == PizzaJobs)
		{
		  switch(row)
		  {
		    case 0:
		    {
		    	SendClientMessage(playerid, 0xFFFF00AA, "You are now a Delivery Boy");
		    	GameTextForPlayer(playerid, "type /job for instructions", 3000, 3);
		    	pJob[playerid] = 1;
		    	return 1;
				}
				case 1:
				{
				  SendClientMessage(playerid, 0xFFFF00AA, "You are now a Truck Driver");
				  GameTextForPlayer(playerid, "type /job for instructions", 3000, 3);
					pJob[playerid] = 2;
					return 1;
				}
			}
		}
	}
	return 1;
}
someone please tell me what is wrong with it, No compiling errors or warnings...
Reply
#2

does it show the game text?
Reply
#3

pawn Код:
currentmenu[playerid] = GetPlayerMenu();
    {
Remove that bracket, it's not doing anything.
Reply
#4

yea, I fixed it then forgot to say I fixed it... But yea, you also noticed what was wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)