The manual says that flg only can be 0 or 1, true or false.
However I made this query for the 3bet preflop%:
- Code: Select all
/* PT3 RING query to get 3bet % */
"SELECT (case when (count(*)!=0) \
then (cast(sum(case when flg_p_3bet then 1 else 0 end) as real) \
/ cast(sum(case when flg_p_3bet_opp then 1 else 0 end) as real)) \
else (-1) \
end) as result \
FROM player as P, holdem_hand_player_statistics as S \
WHERE S.id_player = P.id_player AND \
P.player_name like '%SCREENNAME%' AND \
P.id_site='%SITEID%'",
When I retreive the value for this symbol it returns 0.21, which is the same value that PT3 gives me in the Position Tab where I added 3bet PF only there it is 21 as the expression is:
(cnt_p_3bet / cnt_p_3bet_opp) * 100
While in fact I should have to use cnt_p_3bet and cnt_p_3bet_opp. But when I use it with cnt the value returns -1.
How is this possible as when it says flg can only be 0 or 1, then it should be like 0 divided by 1 = -1 or 1 divided by 0 = -1 or 0 as well. I really dont get this and soon I want to add custom stats in PT3 in the way you explained me before (which worked perfectly btw and thanks for that).
I am afraid that when I make my custom stats for each position (bb or sb) that it will go wrong as I cant find any flg_p_3bet in the configure stats menu.
