PDA

View Full Version : Help me invaild constand in dialogrespon


kloning1
09/01/2015, 06:14 PM
welcome
i'm so confused X_X help me pls ;):)

this is error

NPP_EXEC: "PawnoCompiler"
CD: C:\Users\Magfira\Desktop\MyFroject\gamemodes
Current directory: C:\Users\Magfira\Desktop\MyFroject\gamemodes
"C:\Users\Magfira\Desktop\MyFroject\pawno\pawncc.ex e" "LOL.pwn" -; -(
Process started >>>
LOL.pwn(47435) : error 027: invalid character constant
LOL.pwn(47435) : error 027: invalid character constant
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
<<< Process finished. (Exit code 1)
================ READY ================


this is my script

if(dialogid == tutorial2)
{
new string[12], asu = strval(inputtext);
if(response)
{
if(asu >0 && asu<50)
{
format(string,256,"Ok, umur mu %d",asu);
SCME(playerid,COLOR_YELLOW2,string);
PlayerInfo[playerid][pAge] = asu;
ShowPlayerDialog(playerid,tutorial3,DIALOG_STYLE_L IST,"Choose Your Spawn","Airport - With plane\Stations - with train","Spawn","Cancel");
}
else
{
ShowPlayerDialog(playerid,tutorial2,DIALOG_STYLE_I NPUT,"Umur","Silahkan masukan umurmu.\n\n","Proceed","Cancel");
}
}
if(!response)
{
ShowPlayerDialog(playerid,tutorial1,DIALOG_STYLE_L IST,"Pilih Karaktermu:","Karakter Laki-laki\nKarakter Perempuan","Select", "");
}
}

JuanStone
09/01/2015, 06:20 PM
Change:

if(dialogid == tutorial2)
{
new string[12];
if(response)
{
if(strlen(inputtext >= 1 && strlen(inputtext) <50)
{
format(string,256,"Ok, umur mu %d", inputtext);
SCME(playerid,COLOR_YELLOW2,string);
PlayerInfo[playerid][pAge] = strval(inputtext);
ShowPlayerDialog(playerid,tutorial3,DIALOG_STYLE_L IST,"Choose Your Spawn","Airport - With plane\Stations - with train","Spawn","Cancel");
}
else
{
ShowPlayerDialog(playerid,tutorial2,DIALOG_STYLE_I NPUT,"Umur","Silahkan masukan umurmu.\n\n","Proceed","Cancel");
}
}
if(!response)
{
ShowPlayerDialog(playerid,tutorial1,DIALOG_STYLE_L IST,"Pilih Karaktermu:","Karakter Laki-laki\nKarakter Perempuan","Select", "");
}
}

kloning1
09/01/2015, 06:31 PM
That's not the problem:

"Airport - With plane\Stations - with train"

"\S" isn't a valid escape sequence. I suspect you want:

"Airport - With plane\\Stations - with train"

this is i need :v i forgot replace
"Airport - With plane\Stations - with train"
to
"Airport - With plane\nStations - with train"
;D 8)
thank you so much ****** :)