SA-MP Forums Archive
getting all dini files - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: getting all dini files (/showthread.php?tid=181850)



getting all dini files - WillyP - 07.10.2010

okay, so is there any way to somehow count all the dini_created files in your scriptfiles folder?

such as a person types /howmany

there are %s created files in the lalala folder,accounts);

but i have no clue on how to get all of the files and count them all :/


Re: getting all dini files - CrucixTM - 07.10.2010

Don't think you can, dini is -very- basic. I suggest using MySQL, I would myself, if I knew how to.

BUT - You could always make a dini file named "ACCOUNTS" or something, and then edit a integer in that dini file to fit the number of accounts. In other words, every time you make a new account, plus 1 on that integer.