What's wrong with this code?
#1

I'd never worked with dini before..
The problem is: When I'm gona login it sais Your password is wrong but i typed my password right.

pawn Код:
dcmd_gir(playerid, params[])
{
    new pass[128]; new oyunism[128], Isim[MAX_PLAYER_NAME], control[265];
    GetPlayerName(playerid, Isim, MAX_PLAYER_NAME);
    format(oyunism, sizeof(oyunism), "/RAdmin/Hesaplar/%s.ini",Isim);
    if(Girilmis[playerid] == 1)
    {
      SendClientMessage(playerid, COLOR_RED, "Zaten giris yapilmis");
    }
    if(sscanf(params, "s", pass)) SendClientMessage(playerid, COLOR_YELLOW, "[Kullanim] /gir <sifre>");
    else
    {
        if(dini_Exists(oyunism))
        {
        control = dini_Get(oyunism, "Sifre");
        if(params[playerid] != strval(control))
        {
            SendClientMessage(playerid, COLOR_RED, "Password is wrong!");
        }
        else
        {
            Girilmis[playerid] = 1;
            Para[playerid] = dini_Int(oyunism, "Para");
            Score[playerid] = dini_Int(oyunism, "Score");
            Adminlik[playerid] = dini_Int(oyunism, "Adminlik");
      SendClientMessage(playerid, COLOR_LIGHTGREEN, "Basari ile giris yaptiniz!");
    }
    }
        else
        {
        SendClientMessage(playerid, COLOR_RED, "Bu hesap daha kayitli degil! /kayit <sifre> yazarak bir hesap olusturunz.");
        }
}
return 1;
}
Please help..
Reply


Messages In This Thread
What's wrong with this code? - by RyDeR` - 17.08.2009, 07:33

Forum Jump:


Users browsing this thread: 1 Guest(s)