SA-MP Forums Archive
Dialogs not showing. - 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: Dialogs not showing. (/showthread.php?tid=585819)



Dialog problem! (+rep) - NickMirra - 16.08.2015

My register and login dialogs are not showing for some reason i get in game and it shows the screen moving but no dialogs show up.

Код:
public OnAccountCheck(playerid)
{
	new rows, fields;
	cache_get_data(rows, fields, dbHandle);
	if(rows)
	{
		ServerMSG(playerid, "Please enter the password that you have registered with.");
		SetPlayerToLogin(playerid);
	}
	else
	{
		//Send registration dialog
		ServerMSG(playerid, "To register, enter the password that you would like to have in mind.");
		SetIntVar(playerid, "RegisterPart", 1);
		format(msg, sizeof(msg), ""EMBED_WHITE"Welcome, "EMBED_LIGHTBLUE"%s\n"EMBED_WHITE"Visit www.ig-rp.my.vg\nHint: %s\n\n		Enter your password", GetName(playerid), RandomHint());
		Dialog_Show(playerid, Register, DIALOG_STYLE_INPUT, ""EMBED_YELLOW"IG:RP"EMBED_WHITE"", msg, "Register", "Quit");
		//Send registration dialog
	}
	return 1;
}



Re: Dialogs not showing. - NickMirra - 16.08.2015

bump.


Re: Dialogs not showing. - NickMirra - 17.08.2015

Bump still need help..


Re: Dialogs not showing. - fahlevy - 17.08.2015

see this
https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: Dialogs not showing. - fahlevy - 17.08.2015

Код:
public OnAccountCheck(playerid)
{
	new rows, fields;
	cache_get_data(rows, fields, dbHandle);
	if(rows)
	{
		ServerMSG(playerid, "Please enter the password that you have registered with.");
		SetPlayerToLogin(playerid);
	}
	else
	{
		//Send registration dialog
		ServerMSG(playerid, "To register, enter the password that you would like to have in mind.");
		SetIntVar(playerid, "RegisterPart", 1);
		format(msg, sizeof(msg), ""EMBED_WHITE"Welcome, "EMBED_LIGHTBLUE"%s\n"EMBED_WHITE"Visit www.ig-rp.my.vg\nHint: %s\n\n		Enter your password", GetName(playerid), RandomHint());
		Dialog_Show(playerid, Register, DIALOG_STYLE_INPUT, ""EMBED_YELLOW"IG:RP"EMBED_WHITE"", msg, "Register", "Quit");
		//Send registration dialog
	}
	return 1;
the red color:
is ShowPlayerDialog right? not Dialog_Show..