25.04.2014, 17:50
So hello everyone!
I have a small problem with loading players files while they are offline or online.
The code I use:
I have a folder where are the players data .ini files they are "Firstname_Lastname.ini" format so I want to load every players data file and writing to each of them. I might sound hard, but I know that there has to be some way to do it.
I am using right now to open my own player file, but is very difficult for me to load every player data file and write to all of them like looping or something like that.
Any help would be appreciated!
I have a small problem with loading players files while they are offline or online.
The code I use:
pawn Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
new file[96];format(file,sizeof file,"/Users/%s.ini",name);
new INI:vdata = INI_Open(file);
INI_WriteInt(vdata,"UpdateLog",pInfo[playerid][UpdateLog] = 1);
INI_Close(vdata);
I am using right now to open my own player file, but is very difficult for me to load every player data file and write to all of them like looping or something like that.
Any help would be appreciated!