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
#2

Here should be \n not \A(rmour)

pawn Код:
Sniper\Armour
Reply
#3

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Here should be \n not \A(rmour)

pawn Код:
Sniper\Armour
Thanks, Noticed that after I posted this topic, Thanks for the reply =,).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)