Total Rake And Total Balance
Posted: 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?
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?