Invalid Format for Stat's Table Average

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Invalid Format for Stat's Table Average

Postby Tru80 » Sun Apr 26, 2009 10:33 pm

I tweaked one of kraada's custom tournament stats to display how often a player calls an all-in preflop. It works fine when I put the stat in the hud for each individual player but when I try to use it for table average I get "Expression: Invalid number of arguments passed to function 'format_number' (Expecting 4, Received 2)". I didn't change the format other than the name of the new custom stats. I also tried some of my other custom stats for table average and they worked fine so I'm not sure what's wrong. Here's the format for the stat:

format( '{1}% ({2}/{3})', format_number((cnt_p_call_shove / cnt_p_call_shove_opp) * 100 ,0,false,false), cnt_p_call_shove, cnt_p_call_shove_opp)

I also tried

format( format_number((cnt_p_call_shove / cnt_p_call_shove_opp) * 100 ,0,false,false)

and

/%.2f

but still got the same message

Any idea why it would work fine for individual stats but not for table average?

Thanks
Tru80
 
Posts: 22
Joined: Mon May 12, 2008 2:01 am

Re: Invalid Format for Stat's Table Average

Postby WhiteRider » Mon Apr 27, 2009 4:19 am

Are you sure you're using the correct stat in the HUD?
If you get a warning about format_number when you use /%.2f then something isn't right.

If you're sure you've got everything right please export the stat (from the custom stats window) and attach the file to a ticket on our Support system , and link to this thread in the reference field of the ticket so that we can investigate.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests