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?
Total Rake And Total Balance
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Total Rake And Total Balance
Try using the SystemBalance command in the API and check the Players parameter to see how that compares.
Re: Total Rake And Total Balance
i cant find SystemBalance command in the API
also in the api example page
where is it ? How can i use that?
also in the api example page
where is it ? How can i use that?
-
- Posts: 13
- Joined: Mon Nov 16, 2015 9:54 am
Re: Total Rake And Total Balance
This is full documentation for Poker Mavens API.
SystemBalance command is there
https://www.briggsoft.com/docs/pmavens/ ... erface.htm
SystemBalance command is there
https://www.briggsoft.com/docs/pmavens/ ... erface.htm
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: Total Rake And Total Balance
Are you running the latest version (4.44)? SystemBalance was added to the API in 4.42.aminwxy wrote:i cant find SystemBalance command in the API
http://www.briggsoft.com/patches.htm