As the title says,
Problem:
I need to distribute a large sum of money (which occurs on a regular interval) for all players (users) in my server whether they are online or offline. One of the problems is that all the users' and server data are stored in storedvalue.dbs (located in "./bin/default/Databases" ).
GetListOfPlayers() - only returns list of all players online ...
GetListOfUsersGroup - doesn't work for storedvalue.dbs ...
Is there a way to retrieve all usernames of players in storedvalue.dbs so I can #do something# with their stored data?
e.g.: (This is what I'm trying to do)
Note: No, I am not asking for a full script lol, I just need a function that can draw all usernames from the current storedvalue.dbs database.
Problem:
I need to distribute a large sum of money (which occurs on a regular interval) for all players (users) in my server whether they are online or offline. One of the problems is that all the users' and server data are stored in storedvalue.dbs (located in "./bin/default/Databases" ).
GetListOfPlayers() - only returns list of all players online ...
GetListOfUsersGroup - doesn't work for storedvalue.dbs ...
Is there a way to retrieve all usernames of players in storedvalue.dbs so I can #do something# with their stored data?
e.g.: (This is what I'm trying to do)
Sub < this sub >
$mList = [b]< Get List of All Players' "UserNames" from storedvalue.dbs >[/b] ;
FOREACH ( $maVar IN $mList )
IF ( <they are online, their nickname != "" > )
THEN
# Distribute moneys #
SetPlayerVar( $maVar["value"] , "<var>" , <change> );
ELSE
# Rest aren't online, so distribute moneys to remaining (offline) players too #
SetUserStoredValue( $maVar["value"] , "<var>" , <change> );
ENDIF
ENDFOREACH
EndSub
Note: No, I am not asking for a full script lol, I just need a function that can draw all usernames from the current storedvalue.dbs database.