SA-MP Forums Archive
mSelection buttons are not working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: mSelection buttons are not working (/showthread.php?tid=512421)



mSelection buttons are not working - Twizted - 10.05.2014

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;
}



Re: mSelection buttons are not working - RenSoprano - 10.05.2014

Try to debug it