Blank ini file
#7

You have this in your code:
pawn Код:
public OnPlayerConnect(playerid)
{
    if(strfind(RPNU(playerid), "_", true) == -1)
    {
        Kick(playerid);
        SCM(playerid, COLOR_RED, "Su nimi peab olema formaadis Eesnimi_Perekonnanimi");
        return 1;
    }
    LaadiKasutaja(playerid);
    SisseLogitud[playerid] = 0;
    new nimi[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, nimi, sizeof(nimi));
    format(file, sizeof(file), KASUTAJAD, nimi); // This things and so on...
    if (!ini_Exists(file))
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Registeerimine", "Sisesta enda parool, et registeerida", "Valmis", "Katkesta");
    }
    if(fexist(file))
    {
        ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Logimine", "Sisesta enda parool, et logida", "Logi sisse", "Katkesta");
    }

    return 1;
}
But i looked at the tutorial and there is:
pawn Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid))) //If there's a textfile for Twizted, then the user should login
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); //Loads the data from the user's textfile (password)
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Login","Type your password below in order to login.","Login","Quit");
    }
    else //If the path for Twizted in the Scriptfiles/Accounts directory is non-existent, the user is prompted to register or quit
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Register","Type your password below in order to register a new account.","Register","Quit");
    }
    return 1;
}
See the difference?
Please check your script aigan.
Reply


Messages In This Thread
Blank ini file - by Eestlane123 - 10.07.2015, 11:02
Re: Blank ini file - by Dan. - 10.07.2015, 11:38
Re: Blank ini file - by dominik523 - 10.07.2015, 12:28
Re: Blank ini file - by Eestlane123 - 10.07.2015, 16:30
Re: Blank ini file - by Eestlane123 - 10.07.2015, 18:13
Re: Blank ini file - by Eestlane123 - 10.07.2015, 21:32
Re: Blank ini file - by finelaq - 11.07.2015, 08:23
Re: Blank ini file - by Eestlane123 - 12.07.2015, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)