SA-MP Forums Archive
Help me invaild constand in dialogrespon - 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 me invaild constand in dialogrespon (/showthread.php?tid=556076)



Help me invaild constand in dialogrespon - kloning1 - 09.01.2015

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", "");
	   	}
	}



Respuesta: Help me invaild constand in dialogrespon - JuanStone - 09.01.2015

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", "");
    }
}



Re: Help me invaild constand in dialogrespon - kloning1 - 09.01.2015

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 ******