From dini to SII
#8

pawn Код:
stock Login(playerid,key[])
{
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    new str;
    str = dini_get(data, "password");
    GetPlayerName(playerid,name,sizeof(name));
    format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    if(!strcmp(key,str,false))
    {
        LoadAccount(playerid);
        SendClientMessage(playerid,BLUE,"Info: logged in!");
        PlayerPlaySound(playerid,1150,0,0,0);
        return 1;
       
    }
    else
    {
        SendClientMessage(playerid,RED,"Error: wrong password");
        PlayerPlaySound(playerid,5201,0,0,0);
        ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"Login","Info: your account was foundet.","Login","Cancel");
        return 1;
    }
}
I want you to see if this compiles properly.
Reply


Messages In This Thread
From dini to SII - by w3sker - 10.07.2012, 00:21
Re: From dini to SII - by coole210 - 10.07.2012, 01:44
Re: From dini to SII - by w3sker - 10.07.2012, 09:39
Re: From dini to SII - by clarencecuzz - 10.07.2012, 10:13
Re: From dini to SII - by w3sker - 10.07.2012, 10:17
Re: From dini to SII - by clarencecuzz - 10.07.2012, 10:20
Re: From dini to SII - by w3sker - 10.07.2012, 10:30
Re: From dini to SII - by clarencecuzz - 10.07.2012, 11:49
Re: From dini to SII - by w3sker - 10.07.2012, 12:26

Forum Jump:


Users browsing this thread: 2 Guest(s)