Error In Dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error In Dialog (
/showthread.php?tid=443976)
Error In Dialog -
jueix - 14.06.2013
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.
Re: Error In Dialog -
Jefff - 14.06.2013
Here should be \n not \A(rmour)
Re: Error In Dialog -
jueix - 14.06.2013
Quote:
Originally Posted by Jefff
Here should be \n not \A(rmour)
|
Thanks, Noticed that after I posted this topic, Thanks for the reply =,).