I'm working on a complex one which won't be ready for a week or so, but until then, add a SWITCH/CASE statement in the LFSLapper.lpr file in the OnResult function like this here:
The problem here is that you need to change iit by hand if your points system chnages. I'll address that in the complex one, and allow you to write the results out to a file. We're going to use XML to allow imports into a stats web site.
I dont want money , but here is a point system for 12 players if you want more its not so hard to expand.
With !rank and !point you can see your points.
Copy the folling parts into your lfslapper.lpr and have have a point system in lapper ( works not in ver 5.716 only in 5.841 or higher)
Its the same as on [NLR]NL Racing Copper (Demo FBM BL1) only have i there added a Licence system to.
On [NLR]NL Racing Test i have a bit diffent layout ( smaller letter ).
Thanks! I'll try it, but before I have to switch to the last version of the lapper.
I'm using version 5.716 because I read pb.txt file, showing it on the website, and importing it in mysql db to list users admitted to the race (every wednesday) according to race subscriptions (qualusers), number of laps, and laptimes.
Hi,
All points are stored in the SQL database . ( storedvalue.dbs Tabel fi_user_value )
With some small changes you can also use this to setup events.
If you use for every race a different racenumber in a var ( exaple $racenumber ) ,you can show points results per race and show the total results points.
setUserStoredValue( "S2009_" . $racenumber, GetCurrentPlayerVar( "S2009_" . $racenumber" ) ); #Store data in database
topUser( "Season 2009 Race:" . $racenumber,"S2009_" . $racenumber,"DESC",argv ); # Shows the results for race x ( $racenumber )
topUser( "Season 2009 Total points","S2009_","DESC",argv ); # Shows the total results for S2009_
I'm getting this error in the LFSLapper logs: 9/17/2009 2:27:49 PM -> Syntax error in cfg file Need a item identification on file : "LFSLapper.lpr" at line #1973
9/20/2009 12:58:07 AM -> Param var $MaxCarResets do on file : "LFSLapper.lpr" at line #1597 9/20/2009 12:58:12 AM -> Syntax error in cfg file "LFSLapper.lpr" at line #333 'initaddons' is not a Lapper function Function 'onlapperstart' script aborted
The initaddons function is defined in an external file called addonsused.lpr. Make sure that the following line is in the Lapper config file where the other includes are:
Hi guyz, I really appreciate your help, but it gives me again the same error.
Is it a version problem?
addonsused.lpr content:
Sub initAddons() $enable_pitboard="true"; #Set value to "false" if you don't want to use the Pitboard $enable_pitwindow_gui="true"; #Set value to "false" if you don't want to use the Pitwindow GUI $enable_safetycar_gui="true"; #Set value to "false" if you don't want to use the Safetycar GUI $enable_ctrack_gui="true"; #Set value to "false" if you don't want to use the Ctrack GUI $enable_config_gui="true"; #Set value to "false" if you don't want to use the GUI Config EndSub
Configured on another server ([url="lfs://|[FRL]+short+races|0|S2|/"][FRL] short races 5.8.4.6[/url] ), works perfectly.
But.. I dont understand how points system works: I need to assign points to first 15 drivers (50,40,32,26,22,20,18,16,14,12,10,8,6,4,2), is it possible? How?