count dini accounts
#1

how would i count every account .ini file i have in a folder? im using dini for the accounts.
Reply
#2

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 >.>
Reply
#3

Make a plugin to do it
Reply
#4

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
Reply
#5

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'
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)