SA-MP Forums Archive
Menu isn't working... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Menu isn't working... (/showthread.php?tid=98248)



Menu isn't working... - Annihalation - 19.09.2009

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...


Re: Menu isn't working... - brett7 - 19.09.2009

does it show the game text?


Re: Menu isn't working... - Joe Staff - 19.09.2009

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


Re: Menu isn't working... - Annihalation - 19.09.2009

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