[POMOC]BUG NA LOGIN

Započeo Alex1993
3. Nov. 2013. Zaključano
366
pregleda
5
postova
Alex1993
3
Wheel Man
3. Nov. 2013.
Skripta koju koristim : moj mod od 0
Opis problema : napravio sam log/reg sistem i kada udjem na server on mi izbaci registraciju ja upisem password a zatim mi izbaci login ja upisem taj isti password sa registracije meni izadje da password nije tacan
Dio skripte :
evo vam OnDialogResponse jer mislim da je tu problem
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);
                SetSpawnInfo(playerid, 0, 0, 1685.6200,-2332.9944,13.5469,2.8020, 0, 0, 0, 0, 0, 0);
                SpawnPlayer(playerid);
                }
        }

case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo)
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
    return 1;
}

Slika/Video : ako treba mogu post
Alex1993
3
Wheel Man
3. Nov. 2013.
Quote from November 3, 2013, 4:45 pm:
probaj sada:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch( dialogid )
    {
        case DIALOG_REGISTER:
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registering...",""COL_RED"You have entered an invalid password.\n"COL_WHITE"Type your password below to register a new account.","Register","Quit");
                new INI:File = INI_Open(UserPath(playerid));
                INI_SetTag(File,"data");
                INI_WriteInt(File,"Password",udb_hash(inputtext));
                INI_WriteInt(File,"Cash",0);
                INI_WriteInt(File,"Admin",0);
                INI_WriteInt(File,"Kills",0);
                INI_WriteInt(File,"Deaths",0);
                INI_Close(File);
SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
                SpawnPlayer(playerid);
            }
        }

        case DIALOG_LOGIN:
        {
            if ( !response ) return Kick ( playerid );
            if( response )
            {
                if(udb_hash(inputtext) == PlayerInfo)
                {
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo);
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"You have entered an incorrect password.\n"COL_WHITE"Type your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
    return 1;
}

brate opet isto
😢
Alex1993
3
Wheel Man
3. Nov. 2013.
Quote from November 3, 2013, 4:52 pm:
odradi ponovo reg/log iz ove teme: http://forum.sa-mp.com/showthread.php?t=273088
pazljivo procitaj kako i sta treba, vjerovatno si se zeznuo sa nekom sitnicom..brze ce ti biti da sve opet uradis nego da trazis problem. 🙂

Uradio sam sve opet al isto se desi  😢
Alex1993
3
Wheel Man
3. Nov. 2013.
BUMP BUMO  😢  😢  😢
MadDog
5
Crime Lord
3. Nov. 2013.
Bump nakon 20 minuta?

Lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha