Blank ini file - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Blank ini file (
/showthread.php?tid=581049)
Blank ini file -
Eestlane123 - 10.07.2015
https://sampforum.blast.hk/showthread.php?tid=524344 i used this tutorial to make this system, all working correctly but there is one thing. my user files show up but its empty(0kB)
Re: Blank ini file -
Dan. - 10.07.2015
Why not use MySQL?
Miks MySQL ei kasuta?
Re: Blank ini file -
dominik523 - 10.07.2015
Quote:
Originally Posted by Dan.
Why not use MySQL?
Miks MySQL ei kasuta?
|
Why not use y_ini? MySQL isn't the only data saving/loading system.
OT: Can you show us some codes? Like where are you saving/loading the user data etc.
Re: Blank ini file -
Eestlane123 - 10.07.2015
i have everything same as here
https://sampforum.blast.hk/showthread.php?tid=524344
Re: Blank ini file -
Eestlane123 - 10.07.2015
Here is my pwn file, what i do wrong?
Re: Blank ini file -
Eestlane123 - 10.07.2015
any1?
Re: Blank ini file -
finelaq - 11.07.2015
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.
Re: Blank ini file -
Eestlane123 - 12.07.2015
Sorry wrong file, added right file now.