06.07.2009, 01:09
I posted this in Dracoblue's Dini post, but i'm not getting any replies, so I figured I would post here to, as I am in a rush to get this done.
So, I have a problem reading and writing to player files. I use XAdmin, so the path is scriptfiles/xadmin/users/PlayerNameHere.ini
Well, here is my code:
Code:
if(dini_Exists("scriptfiles/xadmin/Users/%s.ini"))
{
dini_IntSet("scriptfiles/xadmin/Users/%s.ini", "Job", 3);
}
It isn't reaching the player files, I don't think. I read something about %s not working with the file path?
How would I go about fixing that?
Thanks. Smiley
So, I have a problem reading and writing to player files. I use XAdmin, so the path is scriptfiles/xadmin/users/PlayerNameHere.ini
Well, here is my code:
Code:
if(dini_Exists("scriptfiles/xadmin/Users/%s.ini"))
{
dini_IntSet("scriptfiles/xadmin/Users/%s.ini", "Job", 3);
}
It isn't reaching the player files, I don't think. I read something about %s not working with the file path?
How would I go about fixing that?
Thanks. Smiley