OnDialogResponse problem
#1

Nevermind, fixed it myself
Reply
#2

You have two close bracktes '}' after every if statement, thats the problem

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
        if(listitem == 0)
        {
                    SetPlayerColor(playerid, COLOR_GREY);
                    SetPlayerSkin(playerid, 287);
        }
        else if(listitem == 1)
                {
            SetPlayerColor(playerid, COLOR_BLUE);
            SetPlayerSkin(playerid, 283);

        }
        else if(listitem == 2)
                {
            SetPlayerColor(playerid, COLOR_GREEN);
            SetPlayerSkin(playerid, 104);
        }
        else if(listitem == 3)
                {
            SetPlayerColor(playerid, COLOR_PURPLE);
            SetPlayerSkin(playerid, 107);
        }
        else if(listitem == 4)
                {
            SetPlayerColor(playerid, COLOR_TIN);
            SetPlayerSkin(playerid, 114);
        }
        else if(listitem == 5)
                {
            SetPlayerColor(playerid, COLOR_YELLOW);
            SetPlayerSkin(playerid, 108);
        }
Reply
#3

Nevermind, i figured it out myself, thanks for trying to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)