SA-MP Forums Archive
Hello - 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: Hello (/showthread.php?tid=583955)



Hello - Mariciuc223 - 01.08.2015

Hello, how can i loop all files ".ini" from a folder ??

For example i have that folder , %s = Player Name

Код HTML:
Bans/%s.ini
I can loop that files that are in "Bans" ? To make a command like that:

Код HTML:
CMD:/bans(playerid, params[])
{
      // some code
      new bans, String[128];

      for(new i=0; i</*How to loop*/; i++) bans++;

      format(String, sizeof(String), "There are %i active bans !", bans);
      SendClientMessage(playerid, -1, String);
  
      return 1;
}