PDA

View Full Version : YSI Error, help please.


RALL0
11/06/2013, 08:04 PM
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.

Giannidw
11/06/2013, 08:09 PM
Show the script...

RALL0
11/06/2013, 08:10 PM
It's a script with 8000 lines, what part of the script do you want to see..

RALL0
11/06/2013, 08:42 PM
Yea, I got it all.

RALL0
11/06/2013, 08:58 PM
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.

feartonyb
11/06/2013, 11:23 PM
Paste OnPlayerDisconnect here

RALL0
11/06/2013, 11:27 PM
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
INI_Close(File);

feartonyb
11/06/2013, 11:31 PM
What's the user path?

RALL0
11/06/2013, 11:33 PM
On top I got

#define PATH "%s.ini"


This as a stock

stock UserPath(playerid)
{
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playernam e));
format(string,sizeof(string),PATH,playername);
return string;
}

feartonyb
11/06/2013, 11:40 PM
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

RALL0
11/06/2013, 11:43 PM
Alright, so I have this Advanced Vehicle System FS, not taking credits for it but it also got 3 more paths. Can it be caused by those paths?

feartonyb
11/06/2013, 11:49 PM
Yes it can because Car Ownership saves user to read car owner.

RALL0
11/06/2013, 11:51 PM
Ah, I see is there any way I can avoid it or do I have to delete it?

feartonyb
11/06/2013, 11:55 PM
You don't have to delete it. Just change the saving path

RALL0
11/06/2013, 11:58 PM
#define VEHICLE_FILE_PATH "AVS/Vehicles/"
#define DEALERSHIP_FILE_PATH "AVS/Dealerships/"
#define FUEL_STATION_FILE_PATH "AVS/FuelStations/"

The paths are like this

RALL0
12/06/2013, 12:05 AM
[REMOVED]

RALL0
12/06/2013, 11:29 AM
I completely removed the FS and the problem is still there, any ideas?