View Full Version : Racepoints system wanted
Bass-Driver
15th September 2009, 19:45
hi everyone
can someone help me with making a Racepoints system
example.
u earn 10 points when u came 1st over the finish (race with 10 people)
Fire_optikz001
15th September 2009, 20:23
hi everyone
can someone help me with making a Racepoints system
example.
u earn 10 points when u came 1st over the finish (race with 10 people)
:D i got it but timNL told me not to release it
Krayy
15th September 2009, 20:43
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:
Event OnResult( $flagConfirm )
writeline ( langEngine( "%{main_on_result}%" ,GetCurrentPlayerVar("FinishedPos") ) );
SWITCH(GetCurrentPlayerVar("FinishedPos") )
CASE "1":
globalMsg(GetCurrentPlayerVar( "NickName" . "gets 10 points")
BREAK;
CASE "2":
globalMsg(GetCurrentPlayerVar( "NickName" . "gets 9 points")
BREAK;
etc...
ENDSWITCH
EndEvent
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.
lysergic
15th September 2009, 21:10
Everybody wants a racepoint system.
@any programmer: How much money do You want?
Krayy
15th September 2009, 21:36
Everybody wants a racepoint system.
@any programmer: How much money do You want?
Just 'cos you asked nicely, I'll do it for free :thumb:
Watch this space...but not too closely or you'll go blind.
Tim NL
15th September 2009, 21:46
Everybody wants a racepoint system.
@any programmer: How much money do You want?
Hi,
I dont want money :scratchch , but here is a point system for 12 players if you want more its not so hard to expand.:D
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 ).
Have fun with....:D
lysergic
16th September 2009, 12:29
:thumb: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.
These are the results on FRL site:
all laptimes on server: http://www.funracingleague.com/results/pre-qualify
user qualified (for today race, here): http://www.funracingleague.com/qual/lapperview/mega2.php
All scripts are semi-automatic, I've to change only track and car values.
I'm not a php programmer and all these scripts were done with a lot of google and cut/paste :shrug:
Tim NL
16th September 2009, 13:43
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_
erfrag
17th September 2009, 19:27
Hi,
I dont want money :scratchch , but here is a point system for 12 players if you want more its not so hard to expand.:D
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 ).
Have fun with....:D
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
LFSLapper.lpr line #1973
GlobalVar $point_L ;
Tim NL
17th September 2009, 20:17
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
LFSLapper.lpr line #1973
GlobalVar $point_L ;
Looks like you didn't copied the var's in your script or they are on the wrong place in the script.
###################################
#Event triggered when lapper start#
###################################
Event OnLapperStart()
GlobalVar $point_L ;
GlobalVar $point_T ;
GlobalVar $ps_max_points;
$point_L = 75 ;
$point_T = 5 ;
$ps_max_points=10;
Or post your LFSLapper.lpr so we can look at it.
erfrag
17th September 2009, 21:35
restarting lapper seemed to fix the problem, something must have not loaded correctly.
Fire_optikz001
17th September 2009, 22:14
Looks like you didn't copied the var's in your script or they are on the wrong place in the script.
###################################
#Event triggered when lapper start#
###################################
Event OnLapperStart()
GlobalVar $point_L ;
GlobalVar $point_T ;
GlobalVar $ps_max_points;
$point_L = 75 ;
$point_T = 5 ;
$ps_max_points=10; Or post your LFSLapper.lpr so we can look at it.
actually u made abug :S or it said it was a bug
###################################
#Event triggered when lapper start#
###################################
Event OnLapperStart()
GlobalVar $point_L;
GlobalVar $point_T;
GlobalVar $ps_max_points;
$point_L = 75;
$point_T = 5;
$ps_max_points=10;
lysergic
17th September 2009, 23:31
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_
:Looking_a:Looking_a
too difficult for my knowledge :(
bad thing feeling ignorant:(
jvalley201
17th September 2009, 23:49
hi everyone
can someone help me with making a Racepoints system
example.
u earn 10 points when u came 1st over the finish (race with 10 people)
Try Free Airio
Fire_optikz001
18th September 2009, 00:34
Try Free Airio
why would we need that we already have the code + airio is bad
Fire_optikz001
18th September 2009, 00:40
fail
lysergic
19th September 2009, 22:24
Syntax error in cfg file line GlobalVar Char GlobalVar on file : "LFSLapper.lpr" at line #1839
Line 1839:
GlobalVar $point_L;
I paste Your code at bottom of LFSLapper.lpr in default dir
Tim NL
20th September 2009, 00:29
Syntax error in cfg file line GlobalVar Char GlobalVar on file : "LFSLapper.lpr" at line #1839
Line 1839:
GlobalVar $point_L;
I paste Your code at bottom of LFSLapper.lpr in default dir
Hi,
Try this LFSLapper.lpr, its just a default file ( ver 5.845) with the point system allready in it.:D
lysergic
20th September 2009, 00:58
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
500server version is 5.843 not 5.845 :shrug:
Krayy
20th September 2009, 02:57
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
500server version is 5.843 not 5.845 :shrug:
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:
include( "./includes/addonsused.lpr");
lysergic
20th September 2009, 08:10
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 ([FRL] short races 5.8.4.6 (lfs://|[FRL]+short+races|0|S2|/) ), 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?
loconstant
15th October 2009, 21:27
Hi Tim,
Do you have a 5.846 compatible version.
I tried to implement it but I make me only the end board working with no save and all lapper functions down.
I must be very bad in copy/paste.
Thanks
Fire_optikz001
15th October 2009, 21:35
should work 1works for me :|
loconstant
16th October 2009, 10:11
Yes it should :)
Anyway, I found my issue an extra "switch" in the on lapper start event.
Thanks.
Gai-Luron
16th October 2009, 10:35
Hello Loco my friend!
i see you are working with new LFSLapper! Great!
See you later on msn or Team Speak.
Bye
loconstant
16th October 2009, 13:34
:D with this version, you give me lot of works
loconstant
16th October 2009, 20:46
So I have no chance.
When I want to use !rank I have this :(
Lapper Instance 127.0.0.1/30003 abort!
Column does not exist.
Mono.Data.SqliteClient
at Mono.Data.SqliteClient.SqliteDataReader.GetOrdinal (System.String name) [0x00000]
at LFSDbs.storedDbs.GetTable (System.String key, Int32 from, System.String relativeToUserName, Int32 nbRead, System.String Filter, Boolean flagDesc) [0x00000]
at LFSLapper.LFSClient.TopStoredUser (Int32 UCID, System.String title, System.String key, System.String pusername, System.String pnickname, System.String pcmd, Boolean flagNear, Boolean flagDesc) [0x00000]
at LFSLapper.LFSClient.execCmd (GLScript.unionVal val, System.Collections.ArrayList args, LFSLapper.infoPlayer currInfoPlayer) [0x00000]
at LFSLapper.LFSClient.myFunctions (GLScript.unionVal val, System.Collections.ArrayList args) [0x00000]
at GLScript.GLApp.parseBackcall (GLScript.SetOfVars GVAR, GLScript.SetOfVars LVAR, GLScript.unionVal val, System.Collections.ArrayList args) [0x00000]
at GLScript.Parseur.getval (GLScript.SetOfVars GVAR, GLScript.SetOfVars LVAR, GLScript.executeParsedFunction BC) [0x00000]
at GLScript.GLApp.retrieveEvalVar (System.String funcName, GLScript.TokenParse tkparse, GLScript.TokenBuffer currTokenBuffer, GLScript.SetOfVars GVAR, GLScript.SetOfVars LVAR, Boolean breakFunc, System.Char& breakCar) [0x00000]
Int32 GetOrdinal(System.String)
Closing Instance...
Any idea?
[edit]
When the db is empty I do not have the error as soon there is one entry, it dumps.
there is the extrac of one line:
1,ps_points_total,driver1,^4PLFS^7-^1driver1,PLFS-driver1,1,
[edit 2]
It comes from call to nextuser and topuser function, getting the value works.
Tim NL
17th October 2009, 13:33
So I have no chance.
When I want to use !rank I have this :(
Lapper Instance 127.0.0.1/30003 abort!
Column does not exist.
Mono.Data.SqliteClient
at Mono.Data.SqliteClient.SqliteDataReader.GetOrdinal (System.String name) [0x00000]
at LFSDbs.storedDbs.GetTable (System.String key, Int32 from, System.String relativeToUserName, Int32 nbRead, System.String Filter, Boolean flagDesc) [0x00000]
at LFSLapper.LFSClient.TopStoredUser (Int32 UCID, System.String title, System.String key, System.String pusername, System.String pnickname, System.String pcmd, Boolean flagNear, Boolean flagDesc) [0x00000]
at LFSLapper.LFSClient.execCmd (GLScript.unionVal val, System.Collections.ArrayList args, LFSLapper.infoPlayer currInfoPlayer) [0x00000]
at LFSLapper.LFSClient.myFunctions (GLScript.unionVal val, System.Collections.ArrayList args) [0x00000]
at GLScript.GLApp.parseBackcall (GLScript.SetOfVars GVAR, GLScript.SetOfVars LVAR, GLScript.unionVal val, System.Collections.ArrayList args) [0x00000]
at GLScript.Parseur.getval (GLScript.SetOfVars GVAR, GLScript.SetOfVars LVAR, GLScript.executeParsedFunction BC) [0x00000]
at GLScript.GLApp.retrieveEvalVar (System.String funcName, GLScript.TokenParse tkparse, GLScript.TokenBuffer currTokenBuffer, GLScript.SetOfVars GVAR, GLScript.SetOfVars LVAR, Boolean breakFunc, System.Char& breakCar) [0x00000]
Int32 GetOrdinal(System.String)
Closing Instance...
Any idea?
[edit]
When the db is empty I do not have the error as soon there is one entry, it dumps.
there is the extrac of one line:
1,ps_points_total,driver1,^4PLFS^7-^1driver1,PLFS-driver1,1,
[edit 2]
It comes from call to nextuser and topuser function, getting the value works.
Hi Loco,
I tested you lpr file but its works ok here. :)
loconstant
17th October 2009, 21:34
Ouch this is not good for me.
I will try with a fresh new lapper install
Thanks:
Fire_optikz001
17th October 2009, 21:51
does it work now to me looks like a problem with ur sqlite file
loconstant
18th October 2009, 08:29
Hello Tim,
I exchanged the SQLLite and Mono .dll and i still have the same issue.
Should I delete the storedvalue.dbs?
Thanks
[edit] Same result -> dump :(
Tim NL
18th October 2009, 09:13
Hello Tim,
I exchanged the SQLLite and Mono .dll and i still have the same issue.
Should I delete the storedvalue.dbs?
Thanks
Hi,
You can try it with a clean install of lapper , in a new folder.(With a new storedvalue.dbs)
I tested your lpr file with a clean install. Only put your username in admin.txt and superuser.txt and change the admin pwd in default_1.ini
I have maked a new lpr file with the default file from 5.846.
loconstant
18th October 2009, 19:50
Thanks Tim.
I tried with complete fresh install, and your modified lpr, same result :shrug:
I must have an issue with SQLLite and my Linux server installation.
Gai: if your around here, may you have a look to it?
Fred
loconstant
19th October 2009, 22:33
Hello,
Issue solved.
Gai-Luron provided me a new LFS Lapper dev version, which resolves it.:thumb:
Thanks all for your help.
Fire_optikz001
28th October 2009, 01:12
hi well for ur first version it dont look like it is adding the stuff to the database cause when u do !points its blank
it used to work now it dont :(
YamaSuba.NL
21st December 2009, 20:44
Hi Tim,
I dont want money :scratchch , but here is a point system for 12 players if you want more its not so hard to expand.:D
Am trying this one, but am puzzled with something.
Yesterday a player that came in first, was disqualified (DT).
That appeared to be messing up the assigned point to the players that had a normal finish. Any idea what may be causing this, or how I could solve this easily?
<edit> In the meantime I found this might be partly caused by not using the $flagConfirm when determining the ps_race_points. However I think this disqualified player will still be in the Finished Positions. Could that be solved by spectating the guy/gal in the OnFinish event? <endedit>
Tim NL
21st December 2009, 22:46
Hi Tim,
Am trying this one, but am puzzled with something.
Yesterday a player that came in first, was disqualified (DT).
That appeared to be messing up the assigned point to the players that had a normal finish. Any idea what may be causing this, or how I could solve this easily?
<edit> In the meantime I found this might be partly caused by not using the $flagConfirm when determining the ps_race_points. However I think this disqualified player will still be in the Finished Positions. Could that be solved by spectating the guy/gal in the OnFinish event? <endedit>
Hi,
You have to use the Event Onresult.
And to be sure that who won is the winner :schwitz:, you can use the $flagConfirm
1. Event OnResult now receive the confirm flags
CONF_MENTIONED 1
CONF_CONFIRMED 2
CONF_PENALTY_DT 4
CONF_PENALTY_SG 8
CONF_PENALTY_30 16
CONF_PENALTY_45 32
CONF_DID_NOT_PIT 64
Event OnResult( $userName,$flagConfirm ) # Player event
SWITCH( GetCurrentPlayerVar("FinishedPos") )
CASE 1:
IF( $flagConfirm == 2 || $flagConfirm == 18 || $flagConfirm == 34 )
THEN
show and give points
Austin Hedley
6th October 2010, 13:37
I am fairly new to LFS/Lapper/programming so please don't laugh too hard.
I have got LFSLapper 6.0.11 working ok and I am trying to add Tims point system.
I have tried adding the whole pointsystem.lpr code to the end of the LFSLapper.lpr file = did not work
I have tried adding the pieces of code in pointsystem.lpr to the relevant sections in LFSLapper.lpr = did not work.
Could some kind soul "point" me in the right direction?
sinanju
6th October 2010, 19:23
I am fairly new to LFS/Lapper/programming so please don't laugh too hard.
I have got LFSLapper 6.0.11 working ok and I am trying to add Tims point system.
I have tried adding the whole pointsystem.lpr code to the end of the LFSLapper.lpr file = did not work
I have tried adding the pieces of code in pointsystem.lpr to the relevant sections in LFSLapper.lpr = did not work.
Could some kind soul "point" me in the right direction?
Download Tim's lapper script from post #32 above, open it, and search for the word point.
Everything to do with points should be copied from Tim's lapper and pasted into your own at the correct section.
For instance, in the Event OnLapperStart() section, you'll see
GlobalVar $point_L ;
GlobalVar $point_T ;
GlobalVar $ps_max_points;
$point_L = 75 ;
$point_T = 5 ;
$ps_max_points=10;Copy all that and add to your code in same section.
You'll also need to copy everything to do with points from the Event OnMSO( $text ) section, the Event OnRaceStart( $NumP ) section, the Event OnQualStart( $NumP ) section, and the Event OnResult( $flagConfirm ) section.
Then in the Lang "EN" section, look for the lines that start built_, and add built_points = "Points";
================================================== =====
You could also download PSPad (fancy Notepad text editor), look for Tim's guide on how to install, etc (look http://www.lfsforum.net/showthread.php?t=59967) and compare your lapper to Tim's and see where the differences are (open your lapper file, go to TOOLS, then look for Text Differences, then Text Diff with this file, and choose Tim's lapper).
Austin Hedley
7th October 2010, 18:28
Thank you sinanju, I now have points showing at the end of each race. I was so close before your help, but not close enough :)
Question: Should these points be accumulating with each race?
If not, any idea how to go about that?
sinanju
7th October 2010, 20:18
Look at Tim's post #8 in this topic.
Tim NL
7th October 2010, 20:45
Thank you sinanju, I now have points showing at the end of each race. I was so close before your help, but not close enough :)
Question: Should these points be accumulating with each race?
If not, any idea how to go about that?
Hey,
All points are stored in the database.
Total points = total points + race points
You can Type !point to see the top 18 in your database.
Or type !rank to see your points.
Bmxtwins
7th October 2010, 20:58
Tim's system is very good, used an edited version for a beta of my GTR Multiclass Racing server (now defunct due to lack of LFS)
Austin Hedley
7th October 2010, 22:17
Hmm, I may have done something wrong because I dont get a list when typing !point or !rank.
Any chance someone could browse through my file and show me what I am doing wrong?
sinanju
8th October 2010, 08:35
You're using newer version of lapper than I am, so guessing may have been basic changes in lapper coding that make part of Tim's code not work.
You could try replacing
IF(( $flagConfirm == 2 )||( $flagConfirm == 18 )||( $flagConfirm == 34 ))
with
IF( $flagConfirm == 2 || $flagConfirm == 18 || $flagConfirm == 34 )
Austin Hedley
8th October 2010, 11:23
A BIG Thankyou to everyone trying to help me out here,:thumb:
Sinanju, after changing those lines I still see individual race points at the end of each race, but no total points, and alas no reaction from !point !points or !rank.
Thanks for the tip about using PSPad I have found it very useful, I would like to add PRGrep (http://www.prgrep.com/pages/prgrep_en.chm) as a good text searching tool that handles alot of different filetypes.
Maybe I need to go back a revision with LFSLapper, what ver are you using?
sinanju
8th October 2010, 12:18
I'm using version 5.926b (it's what 500Servers - my LFS Host company - uses as most up to date lapper).
I'm currently at work just now, and on secret broadband (normally we have to go thru network and some things like this are logged and not liked!) I've tried to download latest version of lapper, but I get error when I try.
Using an even older version of lapper (v5.924) which I have loaded along with LFS on my secret laptop (which unfortunately has no means to add data via disks or usb - as it has none), which connects to secret broadband, I've checked and the info stored in the storedvalue.dbs holds the proper points totals.
See screendump image.
Make sure that if your lapper text says !points that you use exactly same case of letters when inputting text in LFS. If you have !points in lapper, but you use !POINTS in LFS, you'll get nothing.
What I tend to do, is put different lower and upper case letters in separate CASE statements so that it doesn't matter if you use upper or lower case. For instance;
CASE "!point":
CASE "!POINT":
CASE "!points":
CASE "!POINTS":
CASE "!rank":
CASE "!RANK":
CASE "!DADDY:
topUser( "^1P^0oints ^1S^0ystem","ps_points_total","DESC",argv );
BREAK;
I have newer version of lapper on a disk somewhere at work - if I can find it, I'll load it here from my proper work pc (hopefully will be allowed), then download from here, then try it from secret pc.
Austin Hedley
8th October 2010, 12:55
As an update I have installed SQL Manager for firefox and the storedvalue.dbs is collecting the points ok.
Have implemented your CASE suggestions and I have included my up to date LFSLapper.lpr file
sinanju
8th October 2010, 13:13
Hmm, I may have done something wrong because I dont get a list when typing !point or !rank.
Any chance someone could browse through my file and show me what I am doing wrong?
Eventually found the problem - you'd copied almost the whole SWITCH ($command) section to another part of lapper, so you had 2 of most commands. Search for something like !zone - you'll see what I mean. Unfortunately, you only had the !point command in one of these sections, so it was ignored.
I've made new lapper file with Tim's points system added in - try that - it worked for me.
If it does work- welcome to the world of LFSLapper!
Austin Hedley
9th October 2010, 11:08
Thanks for that sinanju, I see where I went wrong now. :)
The warning we witnessed on the test server was (id_main_careful not found), as it doesnt seem to apply to anything else in the script I simply removed it. All seems well.
sinanju
11th October 2010, 12:48
...The warning we witnessed on the test server was (id_main_careful not found), as it doesnt seem to apply to anything else in the script I simply removed it. All seems well.
Ah, I see what I did.
I copied the whole of my Event OnRaceStart( $NumP ) section and put in the lapper file that I change. The first line of which is
globalRcm( langEngine( "%{main_careful}%" ) );
In my Language section, I have the following to go with it
main_careful = "^1REMEMBER: ^7Let's be careful out there!";
So this message will appear when you're lined up on the grid waiting for race to start.
But I didn't paste this into the lapper file I changed.
Austin Hedley
11th October 2010, 15:37
Cheers for that sinanju, I did try adding a a similar main_careful to test it out and it worked, but then wanted to try a two line message using %nl% between the text which didnt work (using rcm).
Is the only way to use %nl% in a main_* to use a button instead?
sinanju
11th October 2010, 19:58
Probably.
But making a button's easy enough.
Two ways of doing it -
Try something like
openGlobalButton( "racestart",50,65,100,12,8,5,0,"^0Austin Hedley wishes you allf%nl%^1GOOD LUCK!";With this, you don't need to have a language file.
Put this in your Event OnRaceStart( $NumP ) # Lapper event section, before the EndEvent part of the script.
OR
If you're going to have language file:
openGlobalButton( "racestart",50,65,100,12,8,5,0,langEngine( "%{main_racestart}%" ));
Then in the LANG "EN" section, add something like
main_racestart = "^0Austin Hedley wishes you allf%nl%^1GOOD LUCK!";This is a clear button called "racestart", with centred text (the 0 at end of numbers, 100 wide, 50 in from left (so will leave space of 50 at end of button, which makes it centred), 65 down from top (out of 200 - so about a third of way down screen), etc, etc).
If doing it the language way, assuming you don't know another language, check with something like google translator, and put translated message in your LANG "FR" section
main_racestart = "^0Austin Hedley vous souhaite à tousf%nl%^1BONNE CHANCE!";May not be exactly right, but shows you're putting in the effort, and might be a giggle for the French speaking drivers.
delta13
27th June 2011, 21:14
hello
First of all thank you for this script
I wonder if c is possible to add items and remove them manually
I would like to know if I share this piece of script I may do a
------------------------------------------------------------
bonjour
tout d'abord merci pour ce script
je voudrais savoir si c est possible de rajouter des points et de les enlever manuelement
je voudrait savoir si je part de ce morceau de script je peut arriver a le faire
$Username = GetCurrentPlayerVar( "Username" );
SetCurrentPlayerVar( "ps_race_points",(($ps_max_points+1) - GetCurrentPlayerVar( "FinishedPos" ) ) );
SetCurrentPlayerVar( "ps_points_total",getUserStoredValue( "ps_points_total" ) );
thx
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.