The online racing simulator
[Solved] Error on my lapper ('onplayerselectcar')
Hello guys,
I come here to share an error that has appeared on my lapper:
3/1/2021 10:28:51 PM -> Syntax error: Incorrect number of arguments at line #1 in function 'onplayerselectcar' script aborted

In line 1 of lapper.lpr it has no function with 'onplayerselectcar' or in my scripts entirely. Never used the 'onplayerselectcar' and this error appears.
Any suggestion?
Thank you all
Did you changed/delete something in one of your scripts by accident?

-When do you receive that error message? After Lapper restart or when someone select a car?
if I put the event "OnPlayerSelectCar" in lapper.lpr it accuses the error on the line where the event is.

3/2/2021 10:19:38 PM -> Syntax error: Incorrect number of arguments at line #94 in function 'onplayerselectcar' script aborted

i also noticed ,that when displayevents is activated there is acctually 2 blank arguments like i will present in the screens shot
Which version of LFSLapper do you use. And can you try an older/newer version.
Used 7.0.7.1 and now 7.0.7.2 continues the same error
** Best answer **
thank you my friend Rúben!
thanks Bass-Driver, excellent work!
This thread is closed

FGED GREDG RDFGDR GSFDG