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

Hello, I get these errors when compiling my script
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(254) : error 014: invalid statement; not in switch
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(254) : warning 215: expression has no effect
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(254) : error 001: expected token: ";", but found ":"
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(254) : error 029: invalid expression, assumed zero
C:\Users\Jeremy.Jeremy-HP\Desktop\Games\Server\gamemodes\script1.pwn(254) : fatal error 107: too many error messages on one line

This is line 254
pawn Код:
case 1:
But i know that is not enough so here is the WHOLE Callback
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        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:
        SetPlayerFightingStyle(playerid, 26);
        }
    }
}
    return 1;
}
Here is the ShowPlayerDialog
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Fighting Style", "1. Normal\r\n2. Boxing\r\n3. Kung Fu\r\n4. Knee Head\r\n5. Grab Kick\r\n5. Elbow","Accept", "Cancel");
    return 1;
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)