Help me invaild constand in dialogrespon
#1

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.exe" "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 © 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_LIST,"Choose Your Spawn","Airport - With plane\Stations - with train","Spawn","Cancel");
     		}
			else
			{
				ShowPlayerDialog(playerid,tutorial2,DIALOG_STYLE_INPUT,"Umur","Silahkan masukan umurmu.\n\n","Proceed","Cancel");
			}
		}
		if(!response)
	   	{
        	ShowPlayerDialog(playerid,tutorial1,DIALOG_STYLE_LIST,"Pilih Karaktermu:","Karakter Laki-laki\nKarakter Perempuan","Select", "");
	   	}
	}
Reply
#2

Change:

pawn Код:
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_LIST,"Choose Your Spawn","Airport - With plane\Stations - with train","Spawn","Cancel");
        }
        else
        {
            ShowPlayerDialog(playerid,tutorial2,DIALOG_STYLE_INPUT,"Umur","Silahkan masukan umurmu.\n\n","Proceed","Cancel");
        }
    }
    if(!response)
    {
        ShowPlayerDialog(playerid,tutorial1,DIALOG_STYLE_LIST,"Pilih Karaktermu:","Karakter Laki-laki\nKarakter Perempuan","Select", "");
    }
}
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
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"

thank you so much ******
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)