Dialog Problem
#1

Hy i have little big problem

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:

PHP код:
forward DialogLogin(playerid);
public 
DialogLogin(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        
MysqlGetLogin(playerid,GetName(playerid));
        
TextDrawShowForPlayer(playeridLogWait[0]);
        
TextDrawShowForPlayer(playeridLogWait[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(playeridLogWait[0]);
        
TextDrawShowForPlayer(playeridLogWait[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;
    }

Reply
#2

Filterscript or gamemode?
Reply
#3

Gamemode
Reply
#4

Can you show me your OnDialogResponse?
Reply
#5

PHP код:
    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}!"14371652sendername16250293);
                    
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);
            } 
Reply
#6

Ok, before I review this once again, can you be abit more specific about the problem?
Reply
#7

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
Reply
#8

Any help?
Reply
#9

Anyone?>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)