Check files
#4

If the name of file it's "123456" you can use a loop .

Код:
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;
}
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
Reply


Messages In This Thread
Check files - by Fancy - 05.08.2015, 19:28
Re: Check files - by Moudix - 05.08.2015, 19:32
Re: Check files - by jamesbond007 - 05.08.2015, 19:33
Re: Check files - by Mariciuc223 - 05.08.2015, 19:34
Re: Check files - by Fancy - 05.08.2015, 20:31
Re: Check files - by xVIP3Rx - 05.08.2015, 20:35
Re: Check files - by Fancy - 05.08.2015, 20:40
Re: Check files - by xVIP3Rx - 05.08.2015, 20:41
Re: Check files - by Fancy - 05.08.2015, 21:24
Re: Check files - by xVIP3Rx - 05.08.2015, 22:12
Re: Check files - by PMH - 06.08.2015, 01:24

Forum Jump:


Users browsing this thread: 4 Guest(s)