Hello! Can i get a bit of help here?
#2

you have to add
pawn Код:
switch(listitem)
how can you use cases without knowing what you are switching them for?
you also miss one bracket
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        switch(listitem)
        {
            case 1:
            {
                SetPlayerFightingStyle(playerid, 4);
            }
            case 2:
            {
                SetPlayerFightingStyle(playerid, 5);
            }
            case 3:
            {
                SetPlayerFightingStyle(playerid, 6);
            }
            case 4:
            {
                SetPlayerFightingStyle(playerid, 7);
            }
            case 5:
            {
                SetPlayerFightingStyle(playerid, 15);
            }
            case 6:
            { // <-- missing bracket
                SetPlayerFightingStyle(playerid, 26);
            }
        }

    }
    return 1;
}
this should be the correct one.
also, try to indent codes better.
Reply


Messages In This Thread
Hello! Can i get a bit of help here? - by Sal - 22.02.2012, 05:09
Re: Hello! Can i get a bit of help here? - by emokidx - 22.02.2012, 05:12
Re: Hello! Can i get a bit of help here? - by Sal - 22.02.2012, 05:17
Re: Hello! Can i get a bit of help here? - by 2KY - 22.02.2012, 05:22
Re: Hello! Can i get a bit of help here? - by emokidx - 22.02.2012, 05:26
Re: Hello! Can i get a bit of help here? - by Andi_Evandy - 22.02.2012, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)