Errors.
#1

Quote:

(435)error 029: invalid expression, assumed zero
(435) : error 017: undefined symbol "cmd_spawncar"
(435) : error 029: invalid expression, assumed zero

Above that CMD I have a dialog response & when I delete the dialog response, it complies without errors.
Dialog response code :
pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
    {
    switch(dialogid)
        {
        case 1:
            {
            switch(listitem)
            {
                case 0:
                {
                    GivePlayerWeapon(playerid, 24, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 1:
                {
                    GivePlayerWeapon(playerid, 22, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 2:
                {
                    GivePlayerWeapon(playerid, 25, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 3:
                {
                    GivePlayerWeapon(playerid, 26, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 4:
                {
                    GivePlayerWeapon(playerid, 27, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 5:
                {
                    GivePlayerWeapon(playerid, 32, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 6:
                {
                    GivePlayerWeapon(playerid, 28, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 7:
                {
                    GivePlayerWeapon(playerid, 29, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 8:
                {
                    GivePlayerWeapon(playerid, 30, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 9:
                {
                    GivePlayerWeapon(playerid, 31, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
                case 10:
                {
                    GivePlayerWeapon(playerid, 33, 500);
                    SendClientMessage(playerid, COLOR_WHITE, "Enjoy your weapon.");
                }
            }
        }
     }
        return 1;
}
Reply


Messages In This Thread
Errors. - by Darnell - 11.08.2011, 07:20
Re: Errors. - by shaikh007 - 11.08.2011, 08:08
Re: Errors. - by Darnell - 11.08.2011, 08:09
Re: Errors. - by Grim_ - 11.08.2011, 08:10
Re: Errors. - by Darnell - 11.08.2011, 08:12

Forum Jump:


Users browsing this thread: 1 Guest(s)