Help[Server Dialog Problem]
#1

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

Reply


Messages In This Thread
Help[Server Dialog Problem] - by LondonRP - 21.06.2016, 23:24
Re: Help[Server Dialog Problem] - by LondonRP - 21.06.2016, 23:40
Re: Help[Server Dialog Problem] - by LondonRP - 22.06.2016, 01:04
Re: Help[Server Dialog Problem] - by MotherDucker - 22.06.2016, 03:16
Re: Help[Server Dialog Problem] - by LondonRP - 22.06.2016, 19:12
Re: Help[Server Dialog Problem] - by Luis- - 22.06.2016, 19:17
Re: Help[Server Dialog Problem] - by LondonRP - 22.06.2016, 19:24

Forum Jump:


Users browsing this thread: 1 Guest(s)