05.08.2015, 19:34
If the name of file it's "123456" you can use a loop .
When a player create an account to set 1 , 2 , 3 in a row .. if you do account id 1 before 3 , the loop will break
Код:
for(new i, str[128]; i++) { format(str, sizeof(str), "Accounts/%i.ini", i); // format the file if(fexist(AccountID(i))) // check if file exist { // Do stuff } else break; }