YSI Error, help please.
#1

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.
Reply
#2

Show the script...
Reply
#3

It's a script with 8000 lines, what part of the script do you want to see..
Reply
#4

Yea, I got it all.
Reply
#5

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.
Reply
#6

Paste OnPlayerDisconnect here
Reply
#7

pawn Код:
new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
        INI_Close(File);
Reply
#8

What's the user path?
Reply
#9

On top I got
pawn Код:
#define PATH "%s.ini"
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;
}
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)