Page 1 of 1
Tournament Finish Event not work
Posted: Sun Aug 25, 2013 12:48 pm
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.
Re: Tournament Finish Event not work
Posted: Sun Aug 25, 2013 12:58 pm
by salar
i things Tournament Finish Event is NOT "TourneyFinish"
Re: Tournament Finish Event not work
Posted: Sun Aug 25, 2013 1:16 pm
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
Re: Tournament Finish Event not work
Posted: Sun Aug 25, 2013 2:00 pm
by salar
hi again.
i do it.
i dont see date format.
thank you
Re: Tournament Finish Event not work
Posted: Sun Aug 25, 2013 2:24 pm
by Kent Briggs
salar wrote:i dont see date format.
What do you mean by "date format"?
Re: Tournament Finish Event not work
Posted: Thu Aug 29, 2013 9:59 am
by salar
tournament event send YYYY/MM/DD MM:SS date format and when i want date only to compare
MM:SS Cause bug
Re: Tournament Finish Event not work
Posted: Thu Aug 29, 2013 10:13 am
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);