Tournament Finish Event not work

Report bugs found in Poker Mavens
Post Reply
salar
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Tournament Finish Event not work

Post by salar »

hi kent.
when I run this url:
http://localhost:800/eventshandler.asp? ... sh&name=HO Double or Nothing 20K&time=2013-08-25&number=7
every things is ok but when a tourny finish event not work.
PM Config:
Version : 3.19
Enable callback : Yes
URL: http://127.0.0.1:800/eventshandler.asp
Tournament Finish Event: Yes
Hand Event : Yes

my Pm config is ok because hand event work successfully but tournament finish event not work.
salar
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Post by salar »

i things Tournament Finish Event is NOT "TourneyFinish"
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Finish Event not work

Post by Kent Briggs »

salar wrote:i things Tournament Finish Event is NOT "TourneyFinish"
It is definitely "TourneyFinish". Try amending your code so that every call gets logged to a text file that you can examine. I don't have an ASP version but it would look something like this in PHP:

Code: Select all

<?php
  $f = fopen("Callback.txt","a");
  $event = $_POST["Event"];
  $time = $_POST["Time"];
  fwrite($f,"Event = " . $event . "\n");
  fwrite($f,"Time = " . $time . "\n");
  fwrite($f,"\n");
  fclose($f);
?>
I just tested this by running a 2-person tournament and going all-in on the first hand. It created a Callback.txt file with this content:

Event = TourneyFinish
Time = 2013-08-25 13:08:54
salar
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Post by salar »

hi again.
i do it.

i dont see date format.
thank you
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Finish Event not work

Post by Kent Briggs »

salar wrote:i dont see date format.
What do you mean by "date format"?
salar
Posts: 54
Joined: Thu Apr 07, 2011 12:15 pm

Re: Tournament Finish Event not work

Post by salar »

tournament event send YYYY/MM/DD MM:SS date format and when i want date only to compare ;) MM:SS Cause bug
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Finish Event not work

Post by Kent Briggs »

salar wrote:tournament event send YYYY/MM/DD MM:SS date format and when i want date only to compare ;) MM:SS Cause bug
Then just trim off the MM:SS part in your code.

Code: Select all

$time = $_POST["Time"];
$date = substr($time, 0, 10);
Post Reply