10.06.2012, 17:13
Forgive me, I used to be somewhat moderately good at this but I've been away for 2 years :P
I'm trying to write some files using Dini but they don't seem to be getting stored, I've got the includes in the right place and the code runs fine but no files are produced.
This is what I have without revealing too much of my code, basically I just want a file to be written when a player connects but it isn't doing so Can anyone help?
I'm trying to write some files using Dini but they don't seem to be getting stored, I've got the includes in the right place and the code runs fine but no files are produced.
This is what I have without revealing too much of my code, basically I just want a file to be written when a player connects but it isn't doing so Can anyone help?
pawn Код:
public OnPlayerConnect(playerid)
{
new file[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "\\File\\%s.ini", pname);
dini_Create(file);
dini_IntSet(file, "test1", 0);
dini_IntSet(file, "test2", 0);
dini_IntSet(file, "test3", 0);
return 1;
}