new Menu
#1

PHP код:
new Menu:examplemenu
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    
examplemenu CreateMenu("Ammu.Nation"200150.0150.0);
    return 
1;

PHP код:
C:\Users\John\My own server\gamemodes\Evrything.pwn(281) : warning 204symbol is assigned a value that is never used"examplemenu" 
Reply
#2

pawn Код:
warning 204: symbol is assigned a value that is never used: "examplemenu"
this is because you just create a menu and you must to do something for it or else it have this errors

I do the example for you

pawn Код:
new Menu:examplemenu;
 
public OnGameModeInit()
{
    examplemenu = CreateMenu("Ammu.Nation", 2, 0, 0, 150.0, 150.0);
    AddMenuItem(examplemenu, 0, "Item 1");
    AddMenuItem(examplemenu, 0, "Item 2");
    return 1;
}
 
public OnPlayerSelectedMenuRow(playerid, row)
{
    if(GetPlayerMenu(playerid) == examplemenu)
    {
        switch(row)
        {
            case 0: SendClientMessage(playerid,-1,"Item 1");
            case 1: SendClientMessage(playerid,-1,"Item 2");
        }
    }
    return 1;
}
Reply
#3

thank you again
Reply
#4

No problem dude Ask me when you need help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)