Problems with CreateMenu
#1

Hi all,
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);
(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
Reply
#2

Bump, can anyone help?

Ive also tried fiddling with the AddMenuItem thing and tried column 2, (and allowed 2 columns in CreateMenu) - this still didnt work
Reply
#3

pawn Код:
new Menu:SysMenu; //Top of the script

        //In OnFilterScriptInit
        SysMenu = CreateMenu("Functions", 1, 200.0, 100.0, 150.0, 150.0);
    AddMenuItem(SysMenu, 0, "Open Gate");
    AddMenuItem(SysMenu, 0, "Teleport to Base");
    AddMenuItem(SysMenu, 0, "Repair Vehicle");
    AddMenuItem(SysMenu, 0, "Show Company Colours");

        //In OnPlayerCommandText
        ShowMenuForPlayer(BlackMenu, playerid);]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)