Total Rake And Total Balance

For discussion of the Poker Mavens server module and other administration topics

Total Rake And Total Balance

Postby aminwxy » Mon Jan 04, 2016 5:20 pm

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?
aminwxy
 
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Re: Total Rake And Total Balance

Postby Kent Briggs » Mon Jan 04, 2016 6:27 pm

Try using the SystemBalance command in the API and check the Players parameter to see how that compares.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm

Re: Total Rake And Total Balance

Postby aminwxy » Wed Jan 06, 2016 4:34 am

i cant find SystemBalance command in the API

also in the api example page

where is it ? How can i use that?
aminwxy
 
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Re: Total Rake And Total Balance

Postby RafalNiewinski » Wed Jan 06, 2016 6:46 am

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

https://www.briggsoft.com/docs/pmavens/Technical_Interface.htm
RafalNiewinski
 
Posts: 13
Joined: Mon Nov 16, 2015 9:54 am

Re: Total Rake And Total Balance

Postby Kent Briggs » Wed Jan 06, 2016 10:16 am

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
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3826
Joined: Wed Mar 19, 2008 8:47 pm


Return to Site Administration

Who is online

Users browsing this forum: Baidu [Spider] and 9 guests

cron