SA-MP Forums Archive
OnDialogResponse problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnDialogResponse problem (/showthread.php?tid=182168)



OnDialogResponse problem - Mean - 09.10.2010

Nevermind, fixed it myself


Re: OnDialogResponse problem - Mauzen - 09.10.2010

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



Re: OnDialogResponse problem - Mean - 09.10.2010

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