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
#2

Yes, that was not the answer I had hoped for, but you give me a good idea.
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)