Page 1 of 1

Total Rake And Total Balance

PostPosted: Mon Jan 04, 2016 5:20 pm
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?

Re: Total Rake And Total Balance

PostPosted: Mon Jan 04, 2016 6:27 pm
by Kent Briggs
Try using the SystemBalance command in the API and check the Players parameter to see how that compares.

Re: Total Rake And Total Balance

PostPosted: Wed Jan 06, 2016 4:34 am
by aminwxy
i cant find SystemBalance command in the API

also in the api example page

where is it ? How can i use that?

Re: Total Rake And Total Balance

PostPosted: Wed Jan 06, 2016 6:46 am
by RafalNiewinski
This is full documentation for Poker Mavens API.
SystemBalance command is there :-)

https://www.briggsoft.com/docs/pmavens/Technical_Interface.htm

Re: Total Rake And Total Balance

PostPosted: Wed Jan 06, 2016 10:16 am
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