HELP---Command when select in the menu
#1

Hello,
At first I created a menu.
When you select a menu item in the menu, then he should run a command.
For example:
I choose the first menu option (rules). Then he should run the command /rules.

How can I write that?

if(GetPlayerMenu(playerid) == helpmain)
{
switch(row)
{
case 0:
{
rules();
TogglePlayerControllable(playerid, 1);
HideMenuForPlayer(helpmain,playerid);
}
..................................
public rules();
{
Here he should run the command /rules
}

Thanks.
Reply


Messages In This Thread
HELP---Command when select in the menu - by Shinoda90 - 03.01.2010, 00:22
Re: HELP---Command when select in the menu - by Shinoda90 - 03.01.2010, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)