NickJP
Forum Replies Created
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Non-numeric value warningWell, this is interesting. We have events in the current season for two separate competitions, billiards and snooker. I was previously seeing the error only on the page containing the league table for the snooker competition, and only that competition had events where I had entered results since the upgrade to Sportspress 2.7.16.
However, I just entered results for two billiards events by editing the existing events (just entering points scored, no times entered at all), and after updating those events, I am now seeing the identical error on the page containing the billiards league table (https://bsaact.org.au/billiards-2/).
So something with the new version is causing the problem to appear when an event is edited to enter the points scored.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Non-numeric value warningI’ve checked, and I cannot find such a non-numeric time value anywhere. The only times in the database are those that were imported when I created all the season’s events a couple of months ago via import of CSV files. I’ve checked the CSV files, there are no non-numeric values in the time fields, and when I check all the season’s events in Sportspress, they all have a valid time field with no non-numeric values shown. It seems to me very coincidental that the events were all created a couple of months ago, with no warnings seen, and this warning has suddenly appeared immediately after a version upgrade of Sportspress.
Thanks, I’ve spent a while playing around with it, but can’t get it to work. I created a variable currenthcp in the hope that it would get populated with the result of my existing CurrentHcp = StartingHcp + (10 * (GamesWon – GamesLost)) equation, and then used currenthcp in your suggested equation. But it looks as though the currenthcp variable doesn’t get populated from the equation, as using it doesn’t give a valid result.
Is it possible to use the output of one equation in another without reproducing the entirety of the first equation everywhere that its output value appears in the second?
Also, is it possible to define additional constants beyond the default available values of 0-10 and 100? At the moment I’m using (7*10) for 70 and (8*4*10) for 320.
Yes, that gives the correct result for the outlying cases, but not for those between the floor and ceiling. Without some sort of if > then conditional statement, I don’t see how I can have a formula that sets the value correctly for all players.