03.01.2010, 00:22
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.
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.