YSI Error, help please. - 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: YSI Error, help please. (
/showthread.php?tid=443361)
YSI Error, help please. -
RALL0 - 11.06.2013
Hey guys, recently I started getting this error, " *** YSI Error: could not find or create (name).ini "
Everything saves properly but once the player logs out this error pops up, help please.
Re: YSI Error, help please. -
Giannidw - 11.06.2013
Show the script...
Re: YSI Error, help please. -
RALL0 - 11.06.2013
It's a script with 8000 lines, what part of the script do you want to see..
Re: YSI Error, help please. -
RALL0 - 11.06.2013
Yea, I got it all.
Re: YSI Error, help please. -
RALL0 - 11.06.2013
I never had that folder, altho this error just pretty much came out of nowhere. Everything was working fine, it saved and loaded the account properly untill this moment.
Re: YSI Error, help please. -
feartonyb - 11.06.2013
Paste OnPlayerDisconnect here
Re: YSI Error, help please. -
RALL0 - 11.06.2013
pawn Код:
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_Close(File);
Re: YSI Error, help please. -
feartonyb - 11.06.2013
What's the user path?
Re: YSI Error, help please. -
RALL0 - 11.06.2013
On top I got
This as a stock
pawn Код:
stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(string,sizeof(string),PATH,playername);
return string;
}
Re: YSI Error, help please. -
feartonyb - 11.06.2013
First you don't need the string size 128 because max name size is 24 + .ini is 28.
Second I don't see any problems here, YSI shouldn't have to do anything with your account saving system because it's saving in scriptfiles/nick.ini