need help creating my first report

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

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

need help creating my first report

Postby javippp » Sat Jan 14, 2017 11:01 am

Hi,

I'm doing my first report, and there is something wrong, please help me correct this so it can work and to learn how to do them.

This is what I wrote:

if(
cnt_hands > 40
and
#vpip# > 40
,
rgb(0,255,0),
rgb(255,0,0)
)


it gives me an error: "Row Color expression is NOT valid!"

what do I need to change?
javippp
 
Posts: 41
Joined: Mon Nov 30, 2015 5:52 am

Re: need help creating my first report

Postby WhiteRider » Sat Jan 14, 2017 1:35 pm

You will need to have stat names in the correct case, so #VPIP# not #vpip#.
Other than that it's just formatting - you need spaces either side of the 'and' for example, and it doesn't seem to like the 'and' being on a separate line on its own.
This validates:

if(
cnt_hands > 40
and #VPIP# > 40
,
rgb(0,255,0),
rgb(255,0,0)
)
WhiteRider
Moderator
 
Posts: 53972
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: need help creating my first report

Postby javippp » Sun Jan 15, 2017 5:01 pm

thanks, it works!
javippp
 
Posts: 41
Joined: Mon Nov 30, 2015 5:52 am


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 32 guests

cron