Total Rake And Total Balance

For discussion of the Poker Mavens server module and other administration topics
Post Reply
aminwxy
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Total Rake And Total Balance

Post by aminwxy »

hi
we want to get some stat info from our Mavnes serve,
we need TOtal Rake for example 2% , from the begining of game start.

and TOlat balance,
for total user balance we use this code :

<?php
$params = "Password=$pw&Command=AccountsList&Fields=Player,Balance";
set_time_limit(0);
$b = 0;
$api = Poker_API($url,$params,true);
echo 'Total Accounts: '.$api['Accounts'];
for($i=1;$i <= $api['Accounts'];$i++){
$b = $b + $api['Balance'.$i];
}
echo "<label>Total Balance: $b</label>";
?>

but its not exact, our total balance is very very much more.
what do we wrong?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Total Rake And Total Balance

Post by Kent Briggs »

Try using the SystemBalance command in the API and check the Players parameter to see how that compares.
aminwxy
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Re: Total Rake And Total Balance

Post by aminwxy »

i cant find SystemBalance command in the API

also in the api example page

where is it ? How can i use that?
RafalNiewinski
Posts: 13
Joined: Mon Nov 16, 2015 9:54 am

Re: Total Rake And Total Balance

Post by RafalNiewinski »

This is full documentation for Poker Mavens API.
SystemBalance command is there :-)

https://www.briggsoft.com/docs/pmavens/ ... erface.htm
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Total Rake And Total Balance

Post by Kent Briggs »

aminwxy wrote:i cant find SystemBalance command in the API
Are you running the latest version (4.44)? SystemBalance was added to the API in 4.42.

http://www.briggsoft.com/patches.htm
Post Reply