.ini Question
#1

Hello there.I was wondering is there any way to loop through all .ini files let's say in my users folder and get some type of data from there,which i can later on use?(include doesn't matter i just want to know if it's possible)
Reply
#2

pawn Код:
new data[MAX_PLAYERS];
new name[MAX_PLAYER_NAME], file[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
    GetPlayerName(i, name, sizeof name);
    format(file, sizeof file, "Users/%s.ini", name);
    if(dini_Exists(file))
    {
         data[i] = dini_Int(file, "Data");
    }
}
You mean like that?
Reply
#3

It would be possible but that would lag your server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)