Invalid Function of declaration
#10

Just delete the return 1 and extra closing bracket. You seem to have ignored xabi's/_zeus post.

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_TRUCK:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        ShowPlayerDialog(playerid,DIALOG_TRUCKL,DIALOG_STYLE_LIST,"What do you want to transport?","{00F70C}Food & beverages\n{00F70C}Clothing\n{00F70C}24/7 Items", "Select", "Cancel");
                    }
                    case 1:
                    {
                        ShowPlayerDialog(playerid,DIALOG_TRUCKI,DIALOG_STYLE_LIST,"What do you want to transport?","{FF0606}Weapons         {FFFFFF}(Level 1 Bonus: Free Weapons)\n{FF0606}Drugs            {FFFFFF}(Level 1 Bonus: Free 10 pot, 10 crack)","Choose","Cance");
                    }
                }
            }
        }
        case DIALOG_TRUCKL:
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        TogglePlayerControllable(playerid,1);
                        CP[playerid] = 2;
                        SetPlayerCheckpoint(playerid,2264.3049,-1690.5104,13.6958,4.0);
                    }
                    case 1:
                    {
                        TogglePlayerControllable(playerid,1);
                        CP[playerid] = 3;
                        SetPlayerCheckpoint(playerid,786.7734,-1635.9037,13.3828,4.0);
                    }
                }
            }
        }
    }
    return 0; // this is line 573
}
Reply


Messages In This Thread
Invalid Function of declaration - by xganyx - 08.07.2013, 10:38
Re: Invalid Function of declaration - by Konstantinos - 08.07.2013, 10:40
Re: Invalid Function of declaration - by Deathstalker - 08.07.2013, 10:41
Respuesta: Invalid Function of declaration - by Xabi - 08.07.2013, 10:43
Re: Invalid Function of declaration - by xganyx - 09.07.2013, 01:19
Re: Invalid Function of declaration - by xganyx - 10.07.2013, 01:51
Re: Invalid Function of declaration - by Sandiel - 10.07.2013, 03:15
Re: Invalid Function of declaration - by xganyx - 10.07.2013, 05:13
Re: Invalid Function of declaration - by xganyx - 10.07.2013, 11:32
Re: Invalid Function of declaration - by iggy1 - 10.07.2013, 11:36

Forum Jump:


Users browsing this thread: 4 Guest(s)