05.09.2011, 19:26
i want to create a loop that works on someone that is in game and not in game... - i want to change something in dini to all the players... the login ones and the not connected... is it possible?
new file[8+24+4], key[2];
for(new i; i < YOUR-TOTAL-ACCOUNT-COUNT; i++)
{
format(key, sizeof(key), "%i", i);
format(file, sizeof(file); "accounts/%s.ini", dini_Get("account-list.ini", key));
//Do your actions to the account file, the variable is named file!
}
But dini is a slow loading system and a server with 2000+ accounts will crash the server eventually.
|