SA-MP Forums Archive
Help[Server Dialog Problem] - 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[Server Dialog Problem] (/showthread.php?tid=610268)



Help[Server Dialog Problem] - LondonRP - 21.06.2016

Quote:

function:WelcomeMessage(playerid)
{
if(!IsARolePlayName(PlayerName(playerid)))
{
format(iStr, sizeof(iStr), "%s has been kicked. @INVALID_RP_NAME!", PlayerName(playerid));
AdminNotice(iStr);
SendClientWarning(playerid, "You need a Roleplay name to play here! \"First_Last\"");
SetTimerEx("ToKick",500,0,"i",playerid);
return 1;
}
Misc::ClearWindow(playerid);
new iQuery[275];
mysql_format(MySQLPipeline, iQuery, sizeof(iQuery), "SELECT `Password` FROM `PlayerInfo` WHERE `PlayerName` = '%e' LIMIT 1", PlayerName(playerid));
mysql_tquery(MySQLPipeline, iQuery, "OnCheckPlayerAccount", "i", playerid);
SetTimerEx("RespawnEx", 300, 0, "i", playerid);
return 1;
}

function:OnCheckPlayerAccount(playerid)
{
new rows, fields;
cache_get_data(rows, fields, MySQLPipeline);
if(rows)
{
new pPassword[129];
cache_get_field_content(0, "Password", pPassword, MySQLPipeline);
myStrcpy(PlayerTemp[playerid][ppassword], pPassword);
ShowDialog(playerid, DIALOG_LOGIN);
}
else ShowDialog(playerid, DIALOG_REGISTER);

but when i loggin it the "Dialog" dosent show up please help me




Re: Help[Server Dialog Problem] - LondonRP - 21.06.2016

anyone ,admin or someone please help me i really need to finish this problem


Re: Help[Server Dialog Problem] - LondonRP - 22.06.2016

bump ?


Re: Help[Server Dialog Problem] - MotherDucker - 22.06.2016

I believe for the plugin you're using.. which I presume it is easyDialog v1, you need to do, for example:
Код:
ShowDialog(playerid, Show:MyDialog, DIALOG_STYLE_LIST, "List", "Items", "Select", "Cancel");
Or use the up to date version of easyDialog and use:
Код:
Dialog_Show(playerid, MyDialog, DIALOG_STYLE_LIST, "List", "Items", "Select", "Cancel");



Re: Help[Server Dialog Problem] - LondonRP - 22.06.2016

Quote:
Originally Posted by MotherDucker
Посмотреть сообщение
I believe for the plugin you're using.. which I presume it is easyDialog v1, you need to do, for example:
Код:
ShowDialog(playerid, Show:MyDialog, DIALOG_STYLE_LIST, "List", "Items", "Select", "Cancel");
Or use the up to date version of easyDialog and use:
Код:
Dialog_Show(playerid, MyDialog, DIALOG_STYLE_LIST, "List", "Items", "Select", "Cancel");
nah,i dont use easyDialog :3

But please anyone else that can help me


Re: Help[Server Dialog Problem] - Luis- - 22.06.2016

So, what's the native you're currently using? I'd rather just use the usual "ShowPlayerDialog" function.


Re: Help[Server Dialog Problem] - LondonRP - 22.06.2016

Quote:
Originally Posted by Luis-
Посмотреть сообщение
So, what's the native you're currently using? I'd rather just use the usual "ShowPlayerDialog" function.
It's not dialog problem ,now i found out,its .sql its broken,its not full