The online racing simulator
A little help please
Hi, i have lapper running on my drift servers.

On my AutoX layout someone got out the track, got back in and ended up with the top score. I don't think he did it on purpose and I have edited the layout to prevent this happening again.

My question is, how do i remove this score from the database (driftpb.dbs) as its not fair on other users?

I don't even know how to open it lol. (i opened it with notepad and cant see where to remove the entries).

Any help will be much appreciated!
SQLite Manager add-on for Mozilla Firefox will allow you to look at the database.
Quote from sinanju :SQLite Manager add-on for Mozilla Firefox will allow you to look at the database.

Thank you very much. Problem solved.

another question?
i was thinking it would be good to have a button showing the name of the current layout, maybe several allowing admins to change the layout.

i am new to lapper, but have configured it a bit for our servers. i have looked through all the config files and add ons (including the docs) but cant seem to find a variable i can use. in lfs you can use the commands /axlist /axload etc and in the insim.txt file contains references to autocross layouts, but i dont understand it!

all i want to know is if its possible to use the layout information in lapper without editing the source code?

thank you in advance and sorry if i have missed something silly.

Likely you'd have to do something with a CASE command (e.g. !axlist) that takes you to a sub-routine that uses
cmdLFS("/axlist ");
within it.
i already tried that. it doesn't output anything, however if i change the command from /axlist to /say hello it works.

also if i type /axlist in to lfs it does work so i dont know what im doing wrong

thank you for your quick response
Hi

I left a space in my code by mistake!

Try


<?php 
        
CASE "!axlist":
            IF ( 
UserIsAdmin$userName ) == )
            
THEN
            cmdLFS
("/axlist");
            ELSE
        
openPrivButton"main_notadmin",73,1,52,5,4,8,0,langEngine"%{main_notadmin}%" ) );
            ENDIF
            BREAK;
?>

Assuming you're the Admin, should work; worked for me.

Should be easy enough to change the cmdLFS to a button.
right it does work, but it only outputs the result to the dedicated server and not to the game window. i think i need to store the result of /axlist in a variable in order to use it to display?

thank you for taking the time to help me.
/axlist Is available from any connection even if you are not an admin. So why do you want to have a seperate !axlist command?
Quote from DarkKostas :/axlist Is available from any connection even if you are not an admin. So why do you want to have a seperate !axlist command?

you dont, i am testing it from the test sub to make sure its not a problem with my code. it only outputs to the dedicated host, if you're admin or not. if typed directly into LFS, it outputs to screen fine.

im losing sleep over this, lol!

edit:

here is my code


<?php 
Sub MyTest
()

    
privMsgGetCurrentPlayerVar("NickName") . " ^7is testing...");

    
cmdLFS"/axlist");

EndSub
?>


when i give the command !test in lfs, the private message appears but not the result of /axlist, however it does output the layouts in the dedicated host window.

what im thinking is, that it is because i am asking the host to give the /axlist command, when i somehow need to get the current player to give the command. i just dont know how.

i hope that makes sense, im very tired!

time for coffee i think
Quote from WaSp KiNg :when i give the command !test in lfs, the private message appears but not the result of /axlist, however it does output the layouts in the dedicated host window.

I guess your problem is that if you connect your insim program to the host, those admins commands are performed by the host, hence the host is displaying the axlist. You need to tell LFS what user should get the answer I think.

PS: that's all I can think and help
Quote from Whiskey :I guess your problem is that if you connect your insim program to the host, those admins commands are performed by the host, hence the host is displaying the axlist. You need to tell LFS what user should get the answer I think.

PS: that's all I can think and help

yes i think so too, but i dont know how. i will figure it out eventually!

thanks for your input.
What i mean is that EVERYONE can type /axlist. You won't get a message that you are not an admin if you type it. Try to join a dedicated server without being an admin and type /axlist
Quote from DarkKostas :What i mean is that EVERYONE can type /axlist. You won't get a message that you are not an admin if you type it. Try to join a dedicated server without being an admin and type /axlist

i understand that thank you.

im not using admin in my test code, if you read the other posts you will see why he has included admin.

the admin thing isnt the problem anyway, i think im on the right track, im not sure what im trying to do is possible though.

thanks anyway

FGED GREDG RDFGDR GSFDG