.ini Question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: .ini Question (
/showthread.php?tid=394363)
.ini Question -
Penki4a - 22.11.2012
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)
Re: .ini Question -
YoYo123 - 22.11.2012
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?
Re: .ini Question -
JaKe Elite - 22.11.2012
It would be possible but that would lag your server.