mSelection buttons are not working
#1

Neither the skin selection, nor the "Cancel", "Prev" and "Next" buttons are working on my gamemode. What is wrong with the code that's not allowing me to click the buttons? The code is seen below:

pawn Код:
new skinlist = mS_INVALID_LISTID;

public OnGameModeInit()
{
    skinlist = LoadModelSelectionMenu("skins.txt");
    return 1;
}

public OnPlayerModelSelection(playerid, response, listid, modelid)
{
    if(listid == skinlist)
    {
        if(response)
        {
            SendClientMessage(playerid, GREEN, "SERVER: "C_WHITE"Your skin has been set successfully.");
            SetPlayerSkin(playerid, modelid);
            db_update_int(ACCOUNTS_TABLE, modelid);
        }
        else SendClientMessage(playerid, 0xFF0000FF, "You have canceled the skin selection.");
        return 1;
    }
    return 1;
}

public OnPlayerSpawn(playerid)
{
     ShowModelSelectionMenu(playerid, skinlist, "Skin Selection");
     return 1;
}
Reply


Messages In This Thread
mSelection buttons are not working - by Twizted - 10.05.2014, 18:02
Re: mSelection buttons are not working - by RenSoprano - 10.05.2014, 22:12

Forum Jump:


Users browsing this thread: 1 Guest(s)