Callback and Balance 2

For discussion of the Poker Mavens server module and other administration topics
Post Reply
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Callback and Balance 2

Post by Tuck Fheman »

In the API Examples for the Callback file there is no instance of Balance2 in the example, but there is a separate Callback option in Poker Mavens for Balance2 in the Callback system.

Is it setup identical to Balance and would look like below or are some field names different?

Code: Select all

case "Balance2":
      fwrite($f,"Event = " .   $event . "\n");
      fwrite($f,"Player = " .  $_POST["Player"] . "\n");
      fwrite($f,"Change = " .  $_POST["Change"] . "\n");
      fwrite($f,"Balance = " . $_POST["Balance"] . "\n");
      fwrite($f,"Source = " .  $_POST["Source"] . "\n");
      fwrite($f,"Time = " .    $_POST["Time"] . "\n");
      fwrite($f,"\n");
break;
thanks!
Kent Briggs
Site Admin
Posts: 5879
Joined: Wed Mar 19, 2008 8:47 pm

Re: Callback and Balance 2

Post by Kent Briggs »

I haven't updated that page since the secondary currency option was added in Gold v6 but if you click any event in System tab, it lists all the fields in the help bubble at the bottom.

Code: Select all

fwrite($f,"Balance2 = " . $_POST["Balance2"] . "\n");
Tuck Fheman
Posts: 213
Joined: Tue Jul 04, 2017 6:44 am

Re: Callback and Balance 2

Post by Tuck Fheman »

Thank you!
Post Reply