SA-MP Forums Archive
How Can I use switch(menu) in OnPlayerSelectedMenuRow? - 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)
+--- Thread: How Can I use switch(menu) in OnPlayerSelectedMenuRow? (/showthread.php?tid=540331)



How Can I use switch(menu) in OnPlayerSelectedMenuRow? - VivianKris - 04.10.2014

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
	new Menu:_menu = GetPlayerMenu(playerid);
	switch(_menu) {
	    case PickupMenu[STORE_WEAPON]:{

	    }

	    case PickupMenu[STORE_SEXSHOP]:{


	    }
	}
        return 1;
}
Код:
must be a constant expression; assumed zero