Jump to content

Question

Posted

Salutari SA:MP,va mai deranjez inca o datasper.Am reusit sa fac o verificare a parolei,dar tot am o problema :|.Cand introduc parola corecta,imi arata ca ar fi gresita parola...Cine vrea sa vada codul de la inregistrare,sa imi dea un PM !!!Va multumesc

8 answers to this question

Recommended Posts

Posted

ok ;)

[pawn]else if(dialogid == LOGIN)

{

    if ( !response ) return Kick ( playerid );

    if( response )

    {

    if(strlen(inputtext) < 3 || strlen(inputtext) > 20)

{

    ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Logare", "Bine ai revenit pe {0000FF}Romania {FFFF00}Fun {FF0000}Evolution{FFFFFF}!Te rugam sa te loghezi mai jos", "Login", "Kick");

    }

    if(INI_Open(getINI(playerid))) {

    INI_ReadString(PlayerInfo[playerid][pPass],"Password",20);

    if(strcmp(PlayerInfo[playerid][pPass],inputtext,false) != 0) return ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Logare", "Bine ai revenit pe {0000FF}Romania {FFFF00}Fun {FF0000}Evolution{FFFFFF}!Te rugam sa te loghezi mai jos", "Login", "Kick");

    SetPlayerScore( playerid, INI_ReadInt("Score" ) );

    ResetPlayerMoney( playerid );

    GivePlayerMoney( playerid, INI_ReadInt( "Cash" ) );

    PlayerInfo[playerid][pAdmin] = INI_ReadInt("Admin");

    INI_Close();

    }

    }[/pawn]

EDIT:Am sa incerc sa folosesc B-Dial include!L-am descoperit din greseala pe net...Aici este linkul oficial !!

Posted

[pawn]else if(dialogid == LOGIN)

{

    if ( !response ) return Kick ( playerid );

    if( response )

    {

    if( strlen( inputtext ) || strlen( inputtext ) > 20)

{

    ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Logare", "Bine ai revenit pe {0000FF}Romania {FFFF00}Fun {FF0000}Evolution{FFFFFF}!Te rugam sa te loghezi mai jos", "Login", "Kick");

    }

    if(INI_Open(getINI(playerid))) {

    INI_ReadString(PlayerInfo[playerid][pPass],"Password",20);

    if(strcmp(PlayerInfo[playerid][pPass],inputtext,false) != 0) return ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Logare", "Bine ai revenit pe {0000FF}Romania {FFFF00}Fun {FF0000}Evolution{FFFFFF}!Te rugam sa te loghezi mai jos", "Login", "Kick");

    SetPlayerScore( playerid, INI_ReadInt("Score" ) );

    ResetPlayerMoney( playerid );

    GivePlayerMoney( playerid, INI_ReadInt( "Cash" ) );

    PlayerInfo[playerid][pAdmin] = INI_ReadInt("Admin");

    INI_Close();

    }

    }[/pawn]

idiots.png
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.