Dialog not continue
#1

Hi!

Why then i click on the button with dialog_register not continue to dialog_register2.

Код:
    if(dialogid == DIALOG_REGISTER)
	{
		if(response)
		{
		    PlayerInfo[playerid][pLanguage] = 1;
		    SendClientMessage(playerid, COLOR_WHITE, "Pentru a intra pe forum,intra pe Pear.1to.us.");
		    SendClientMessage(playerid, COLOR_YELLOW, "Alege-ti genul.");
		    ShowPlayerDialog(playerid,DIALOG_REGISTER2,DIALOG_STYLE_LIST,"Alege genul caracterului tau","Baiat\nFata","Alege","");
		    RegistrationStep[playerid] = 2;
		    SetPlayerSkin(playerid, 216);
			new str1[512];
			mysql_format(SQL,str1,512,"UPDATE users SET `Language`='1' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
			mysql_tquery(SQL,str1,"","");
		}
		return 1;
	}
	if(dialogid == DIALOG_REGISTER2)
	{
	    if(response)
		{
		    if(listitem == 0)
			{
				PlayerInfo[playerid][pSex] = 1;
				new str1[512];
				mysql_format(SQL,str1,512,"UPDATE users SET `Sex`='1',`Model`='250'  WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
				mysql_tquery(SQL,str1,"","");
				RegistrationStep[playerid] = 3;
				SetPlayerSkin(playerid, 250);
				if(PlayerInfo[playerid][pLanguage] == 2)
				{
					format(string, sizeof(string), "Gen setat: baiat.");
					SendClientMessage(playerid, COLOR_YELLOW, string);
					ShowPlayerDialog(playerid, DIALOG_REGISTER3, DIALOG_STYLE_INPUT, "Varsta", "Scrie varsta caracterului tau:", "Ok", "");
				}
			}
			if(listitem == 1)
			{
				PlayerInfo[playerid][pSex] = 2;
				new str1[512];
				mysql_format(SQL,str1,512,"UPDATE users SET `Sex`='2',`Model`='216' WHERE `name`='%s'",PlayerInfo[playerid][pNormalName]);
				mysql_tquery(SQL,str1,"","");
				RegistrationStep[playerid] = 3;
				SetPlayerSkin(playerid, 216);
				if(PlayerInfo[playerid][pLanguage] == 2)
				{
					format(string, sizeof(string), "Gen setat: fata.");
					SendClientMessage(playerid, COLOR_YELLOW, string);
					ShowPlayerDialog(playerid, DIALOG_REGISTER3, DIALOG_STYLE_INPUT, "Varsta", "Scrie varsta caracterului tau:", "Ok", "");
				}
			}
		}
		return 1;
	}
Reply
#2

return 0 on dialog response and change in other filterscripts as well
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)