07.09.2010, 09:40
Hi all,
Im having a few problems with CreateMenu.
(Sorry about the indentation, it died in transit xD)
The menu shows, with the title, but with no menu items.
I cannot see what i have done wrong. - I have tried the wiki and that shows me that the above is correct.
Your help is appreciated.
Thanks
Ash
Im having a few problems with CreateMenu.
pawn Код:
new Menu:SysMenu; //Top of the script
//In OnFilterScriptInit
SysMenu = CreateMenu("Functions", 1, 200.0, 100.0, 150.0, 150.0);
AddMenuItem(SysMenu, 1, "Open Gate");
AddMenuItem(SysMenu, 1, "Teleport to Base");
AddMenuItem(SysMenu, 1, "Repair Vehicle");
AddMenuItem(SysMenu, 1, "Show Company Colours");
//In OnPlayerCommandText
ShowMenuForPlayer(BlackMenu, playerid);
The menu shows, with the title, but with no menu items.
I cannot see what i have done wrong. - I have tried the wiki and that shows me that the above is correct.
Your help is appreciated.
Thanks
Ash