Dialog not showing
#1

Hey, i'm using easyDialog include
when i try connect to check dialogs opening it don't show it
and in other gamemodes and filterscript it show the dialogs !
Reply
#2

To fix this please use '' return 1; '' in your main gamemode OnDialogResponse or some native which is used when a dialog is called in easydialog
and '' return 0; '' in the other filterscripts or some what, if didn't work please show the code
Reply
#3

Some code would be nice
Reply
#4

Code:
Dialog:LoginDialog(playerid, response, listitem, inputtext[])
{
	if(!response) return Kick(playerid);
	new buf[129], DBResult:result;
	WP_Hash(buf, 129, inputtext);
	if(strcmp(buf, pInfo[playerid][pPass]))
	{
		SendClientMessage(playerid, COLOR_RED, "[Server]: Incorrect password !");
		Dialog_Show(playerid, LoginDialog, DIALOG_STYLE_PASSWORD, "Login...", "Welcome back on the server ! Please input your password below in order to login", "Login", "Quit");
	}	
	else
	{
		SendClientMessage(playerid, COLOR_GREEN, "You have logged in successfully ! Loading your data...");
		format(buf, 129, "SELECT * FROM Users WHERE Username = '%q'", pInfo[playerid][pName]);
		result = db_query(db, buf);
		if(db_num_rows(result))
		{
			pInfo[playerid][pKills] = db_get_field_assoc_int(result, "Kills");
			pInfo[playerid][pDeaths] = db_get_field_assoc_int(result, "Deaths");
			pInfo[playerid][pRescues] = db_get_field_assoc_int(result, "Rescues");
			pInfo[playerid][pMoney] = db_get_field_assoc_int(result, "Money");
			pInfo[playerid][pScore] = db_get_field_assoc_int(result, "Score");
			pInfo[playerid][pAdmin] = db_get_field_assoc_int(result, "Admin");
			pInfo[playerid][pVIP] = db_get_field_assoc_int(result, "VIP");
			pInfo[playerid][pHelper] = db_get_field_assoc_int(result, "Helper");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your stats has been loaded successfully");
			Dialog_Show(playerid, ClassSelection, DIALOG_STYLE_LIST, "Select Class", "Swat\nFBI\nTerrorist\nCivilian", "Select", "Quit");
			return 1;
		}
		db_free_result(result);
	}
	return 1;
}
This is an example of login
it doesn't show at all !
Reply
#5

Are you using Dialog_Show also at "OnPlayerConnect"?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)