Error In Dialog
#1

Fixed, Noticed it was a stupid mistake.

Ok, So I have an error in my dialog which is below.

pawn Код:
ShowPlayerDialog(playerid, 616, DIALOG_STYLE_LIST, "{CC0000}Police Armoury", "NightStick\nPepper Spray\nColt 45\nDesert Eagle\nShotGun\nMP5\nM4\nSniper\Armour\nReset Weapons\nReset Armour", "Ok", "Cancel");
And the error is

Код:
C:\Users\Jueix\Desktop\Sa-mp\gamemodes\newrp.pwn(2547) : error 027: invalid character constant
C:\Users\Jueix\Desktop\Sa-mp\gamemodes\newrp.pwn(2547) : error 027: invalid character constant
Full code

pawn Код:
COMMAND:Armoury(playerid, params[])
{
    if(RpPlayerInfo[playerid][pFaction] == 1 || IsPlayerAdmin(playerid) || WorldInfo[playerid][AdminLevel] >= 1)
    {
        ShowPlayerDialog(playerid, 616, DIALOG_STYLE_LIST, "{CC0000}Police Armoury", "NightStick\nPepper Spray\nColt 45\nDesert Eagle\nShotGun\nMP5\nM4\nSniper\Armour\nReset Weapons\nReset Armour", "Ok", "Cancel");
        return 1;
    }
    return 1;
}
Thanks for the help to all that help.
Reply


Messages In This Thread
Error In Dialog - by jueix - 14.06.2013, 16:07
Re: Error In Dialog - by Jefff - 14.06.2013, 16:30
Re: Error In Dialog - by jueix - 14.06.2013, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)