count dini accounts - 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: count dini accounts (
/showthread.php?tid=74115)
count dini accounts -
StrickenKid - 19.04.2009
how would i count every account .ini file i have in a folder? im using dini for the accounts.
Re: count dini accounts -
Weirdosport - 19.04.2009
I don't think you can, you'd have to have a separate ini file that you updated every time you added/deleted a file. I was thinking about this recently >.>
Re: count dini accounts -
beckzy - 20.04.2009
Make a plugin to do it
Re: count dini accounts -
StrickenKid - 20.04.2009
Quote:
Originally Posted by BeckzyBoi
Make a plugin to do it
|
i don't know how to make plugins

, i want to lean though but cant find any tuts or the program that you make them with
Re: count dini accounts -
yezizhu - 20.04.2009
Add something in dini_Create&dini_Delete
or..
details:
pawn Код:
stock personal_dini_Create(const filename[]){
if(dini_Create(filename)){
//read a number from 'ur file',
//+1 to the number
//write the number to 'ur file'
return true;
}
retuen false;
}
#defeine dini_Create personal_ dini_Create
and modify dini_Delete in the same way
edited:
It doesnt edit source code,means no lisence argument...
And should add it before using function 'dini_Create'
Re: count dini accounts -
Joe Staff - 20.04.2009
YSF has a ffind function used to find files, you could set up a loop that ran a lot until it reached the end.
OR you could right click a folder and click properties, that will tell you how many files are in the folder.