Error: Invalid number of arguments passed to expression

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Error: Invalid number of arguments passed to expression

Postby the dueces » Fri Oct 05, 2012 9:44 am

Sum(if[tourney_hand_player_statistics.flg_p_limp and (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) >= 8 AND (tourney_hand_player_statistics.amt_p_effective_stack / tourney_blinds.amt_bb) <= 12.99 AND lookup_actions_p.action = 'CF', 1, 0])

I get an error message on my HUD Error: Expression: Invalid number of arguments passed to function 'if' (Expecting 3, Received 2)
Is there a problem with above code?
the dueces
 
Posts: 6
Joined: Wed Apr 18, 2012 3:16 pm

Re: Error: Invalid number of arguments passed to expression

Postby kraada » Fri Oct 05, 2012 1:32 pm

I copied and pasted that and it validated for me. Are you sure you're in the right section (T, Players, Columns)?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Error: Invalid number of arguments passed to expression

Postby the dueces » Fri Oct 05, 2012 8:40 pm

Yes i'm in - Tournaments - Players - columns

I'm new to creating custom stats is there something else I could have missed?

When I click the Validate button it says "expression is valid" it's just when my HUD loads up. I get the Error message I quoted in the first post, it's displayed in red writing on my HUD where the custom stat should be?
the dueces
 
Posts: 6
Joined: Wed Apr 18, 2012 3:16 pm

Re: Error: Invalid number of arguments passed to expression

Postby WhiteRider » Sat Oct 06, 2012 4:51 am

Please export your Hud profile and attach it to a Support Ticket. Tell us the exact name of the stat causing the problem, and which group it is in, and we'll check it out for you.
WhiteRider
Moderator
 
Posts: 54017
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 9 guests

cron
highfalutin