SA-MP Forums Archive
[HElP]error 027: invalid character constant - 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: [HElP]error 027: invalid character constant (/showthread.php?tid=592056)



[HElP]error 027: invalid character constant - AlbaniaMafiaRP - 19.10.2015

Quote:

COMMAND:test(playerid, params[])
{
new amrpss[ 3583 ];
strcat(amrpss, " {FFFFFF} / \ |\ /| | | | |\n");
strcat(amrpss, " {FFFFFF} / \ | \/ | | | |_____|\n");
strcat(amrpss, " {FFFFFF} / \ | | ________|__| | \n");
strcat(amrpss, " {FFFFFF} /_______\ | | | \ | \n");
strcat(amrpss, " {FFFFFF} / \ | | | \ | \n");
strcat(amrpss, " {FFFFFF} / \ | | | \ | \n");
strcat(amrpss, " {FFFFFF}========================================== ======================================\n");
strcat(amrpss, " {FFFFFF}===================John James AKA Sulejman SCRIPT==============================\n");
strcat(amrpss, " {FFFFFF}========================================== ======================================\n");
ShowPlayerDialog(playerid, 13, DIALOG_STYLE_MSGBOX, "{FFFFFF}Argentina Mafia Roleplay",amrpss, "Ok", "");
return 1;
}

AS YOU SEE NO BUG PLEASE HELP



Errors I Get

Quote:

C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24973) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24973) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24974) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24974) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24975) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24975) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24976) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24976) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24977) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(24977) : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(2497 : error 027: invalid character constant
C:\Documents and Settings\USER\Desktop\Server - Real one\AMDINI.pwn(2497 : error 027: invalid character constant
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


12 Errors.




Re: [HElP]error 027: invalid character constant - Sh4d0w2 - 19.10.2015

On top of your script :

PHP код:
#include <zcmd> 
and I think you cant use or need to remove the _ \ | :

PHP код:
strcat(amrpss" {FFFFFF} / \ |\ /| | | | |\n");
strcat(amrpss" {FFFFFF} / \ | \/ | | | |_____|\n");
strcat(amrpss" {FFFFFF} / \ | | ________|__| | \n");
strcat(amrpss" {FFFFFF} /_______\ | | | \ | \n");
strcat(amrpss" {FFFFFF} / \ | | | \ | \n");
strcat(amrpss" {FFFFFF} / \ | | | \ | \n"); 
Make it simple

I try compiled this and no errors :

PHP код:
CMD:test(playerid,params[])
{
new 
amrpss3583 ];
strcat(amrpss" {FFFFFF}========================================== ======================================\n");
strcat(amrpss" {FFFFFF}===================John James AKA Sulejman SCRIPT==============================\n");
strcat(amrpss" {FFFFFF}========================================== ======================================");
ShowPlayerDialog(playerid13DIALOG_STYLE_MSGBOX"{FFFFFF}Argentina Mafia Roleplay",amrpss"Ok""");
return 
1;




Re: [HElP]error 027: invalid character constant - AlbaniaMafiaRP - 20.10.2015

THANKS FOR YOUR HELP ^_^ <3


Re: [HElP]error 027: invalid character constant - AlbaniaMafiaRP - 20.10.2015

+REP


AW: [HElP]error 027: invalid character constant - Kaliber - 20.10.2015

Instead of a single \ you just have to use \\

Because \ escapes


Re: [HElP]error 027: invalid character constant - AlbaniaMafiaRP - 23.10.2015

lol xd
thanks you too ! xd