PDA

View Full Version : Dialog Problem


BoBiTzaa
07/03/2014, 08:21 AM
Hy i have little big problem :D

When i execute command GMX to restart server, all work , all start but when dialog appear Cand type on him or execute login/cancel WHY??And that happened only when i restart server

This is register and login dialog:

forward DialogLogin(playerid);
public DialogLogin(playerid)
{
if(IsPlayerConnected(playerid))
{
MysqlGetLogin(playerid,GetName(playerid));
TextDrawShowForPlayer(playerid, LogWait[0]);
TextDrawShowForPlayer(playerid, LogWait[1]);
new stra[160];
format(stra,sizeof(stra),"{FFFFFF}Bine ai revenit, {FFFEBD}%s {FFFFFF}!\n\nTe rugam sa-ti introduci parola in casuta de login !\n\n\n\n\t\t\t\t{FFFEBD}RadioSky's SA:MP Lands", ReturnName(playerid));
ShowPlayerDialog(playerid,5,DIALOG_STYLE_PASSWORD,"{DD9E1C}Autentificare",stra,"Logare","Iesire");
/*TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);*/
ShowLoginBar[playerid] = true;
}
}

forward DialogRegister(playerid);
public DialogRegister(playerid)
{
if(IsPlayerConnected(playerid))
{
//SelectTextDraw(playerid, 0x00FF00FF);
TextDrawShowForPlayer(playerid, LogWait[0]);
TextDrawShowForPlayer(playerid, LogWait[1]);
new stra[256];
format(stra,sizeof(stra),"{FFFFFF}Bine ati venit {8CBBF2}%s {FFFFFF}!\n\nVa rugam sa introduceti o parola in casuta pentru inregistrare !\n\n\n\n\t\t\t{8CBBF2}RadioSky's SA:MP Lands", ReturnName(playerid));
ShowPlayerDialog(playerid,6,DIALOG_STYLE_PASSWORD,"{4A89C6}Inregistrare",stra,"Inregistrare","Iesire");
/*TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw22);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);*/
//TogglePlayerSpectating(playerid, 1);
ShowLoginBar[playerid] = true;

}
}

HK
07/03/2014, 08:24 AM
Filterscript or gamemode?

BoBiTzaa
07/03/2014, 08:25 AM
Gamemode

HK
07/03/2014, 08:31 AM
Can you show me your OnDialogResponse?

BoBiTzaa
07/03/2014, 08:37 AM
case 5: // == Login System ==
{
if(strlen(inputtext) < 2)
{
format(string,size_string,"{FFFFFF}Bine ati revenit {%06x}%s {FFFFFF} !\n\nTe rugam sa-ti tastezi parola in casuta pentru autentificare !\n\n\n\n\t\t\t\t{%06x}RadioSky's SA:MP Lands {FFFFFF}!", 14371652, sendername, 16250293);
ShowPlayerDialog(playerid,5,DIALOG_STYLE_PASSWORD,"{EE7575}Autentificare",string,"Logare","Iesire");
return SendClientMessage(playerid,0xC6DB6FFF,"Parola trebuie sa contina minim 2 caractere.");
}
//new passwordhash[129];
//WP_Hash(passwordhash, sizeof (passwordhash), inputtext);
return OnPlayerModelLogin(playerid,inputtext);
}
case 6: // == Register System ==
{
if(strlen(inputtext) < 2)
{
format(string,size_string,"{FFFFFF}Bine ati venit {8CBBF2}%s {FFFFFF}!\n\nVa rugam sa introduceti o parola in casuta pentru inregistrare !\n\n\n\n\t\t\t{8CBBF2}RadioSky's SA:MP Lands",sendername);
ShowPlayerDialog(playerid,6,DIALOG_STYLE_PASSWORD,"{4A89C6}Inregistrare",string,"Inregistrare","Iesire");
return SendClientMessage(playerid,0xC6DB6FFF,"Parola trebuie sa contina minim 2 caractere.");
}
return OnPlayerModelRegister(playerid,inputtext);
}

HK
07/03/2014, 08:40 AM
Ok, before I review this once again, can you be abit more specific about the problem?

BoBiTzaa
07/03/2014, 08:42 AM
1 : Start server. All work
2. Enter server , ok all work , i input password enter game blabla..
3. Type /gmx to restart server. Server execute command: SendRconCommand("gmx");
4. Server is restarting, and when login screen appear again to login, i can't type anything in the dialog box, or click on them
OR
****** TRANSLARE SORRY FOR BAD ENGLISH:

Everything works perfectly, but when I restart the server with the command GMX dialogue on the screen can not be accessed by pressing either login or cancellation, and can not write anything in the login box

BoBiTzaa
07/03/2014, 09:49 AM
Any help?

BoBiTzaa
08/03/2014, 12:53 PM
Anyone?>