1.
kraada wrote:Small error in parenthesis matching. Try this instead:
if( cnt_hands > 9999, format('{1}k', format_number((cnt_hands / 1000), 0, false, false), if( cnt_hands > 999, format( '{1}k', format_number((cnt_hands / 1000), 1, false, false)), cnt_hands )))
Not gonna work too....although it says that the expression is valid but once I want to use it in my HUD there comes an error message on the hand...something like....."expression: invalid number of argument passed for function if...expecting 3 and receiving 2"
2. I give up on adding 0 to the date. I get what I have to do and I tried several stuff the last 2 hours but the best I could come up with is
format('{1}{2}.{3}{4}.{5}', if( date_played_day < 10, '0', format_number(date_played_day, 0, false, false)), if( date_played_month < 10, '0', format_number(date_played_month, 0, false, false)), format_number(date_played_year, 0, false, false))
but this gives me 260.2011{4}.{5} instead of 26.07.2011
When I use this one just for the day
format('{1}{2}', if( date_played_day < 10, '0', format_number(date_played_day, 0, false, false)))
it gives me either the correct number if the number is at least 10 or it gives me 0.
Somehow I'm missing on how to assign two different numbers to {1} and {2}. It only uses {1} and thats it.
3. But in order to prove to you that I really tried ;-) I might have found a little error in the tutorial.
http://www.pokertracker.com/forums/view ... 45&t=22599Example 2 (Holdem Cash Player Statistics section)
format( '{1} had {2} steal opportunities and raised {3} times', str_player_name, format_number(cnt_steal_opp,0,false,false), format_number(cnt_steal_att,0,false,false) )
..would display as:
Player1 had 20 steal opportunities and raised 12 times
More realistically, you might use this format expression:
format( '{1}% ({2}/{3})', (cnt_steal_att / cnt_steal_opp) * 100, format_number(cnt_steal_opp,0,false,false), format_number(cnt_steal_att,0,false,false) )
..which would display as:
60% (12/20)The bolded parts have to be the other way, right? If the display should be 12/20 steal_opp has to be the 2nd format number and steal_att has to come first.