16.01.2013, 03:56
I want to count how many registered player the server currently has.
Now my user accounts are on (/scriptfiles/UserAccounts/)
And I want to count how many files exist in that folder, so if I have 4 accounts, the message should return 4
Example:
I don't know what I just did there^ but you got the point.
Oh and by the way I use y_ini to load and save my userfiles if that helps
Now my user accounts are on (/scriptfiles/UserAccounts/)
And I want to count how many files exist in that folder, so if I have 4 accounts, the message should return 4
Example:
pawn Code:
public OnPlayerConnect(playerid)
{
new filecount;
filecount = // dunno what to do here
SendClientMessage(playerid, 0xFFFFFF, "Welcome to the server. Database has %i registered accounts",filecount);
return 1;
}
Oh and by the way I use y_ini to load and save my userfiles if that helps