The online racing simulator
Searching in All forums
(75 results)
LFSCruise
Demo licensed
I know the database then I watched it all a million times.

I need the data to show the site.

And if you're on
SetPlayerName( "Name", GetCurrentPlayerVar("UserName") );

It created everything I am sure will make none mistakes without creating a new database table but LFSLapper bug and it does not work does not record data.

I do not have that in common fi_user_value a bunch of clones. I need a separate new table that included the player's ID and UserName, which would give the player list.


<?php 
CREATE TABLE Player 
(
    
ID INTEGER PRIMARY KEY  NOT NULL DEFAULT '',
    
Name CHAR20 )
)  
?>

Name = write in player UserName

The new table at a shows glance the whole number of players.
Do not read any of the LFS Lapper value error, an error and does not work.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from Gai-Luron :Hello,

you can specify a text file to export via ftp.

Look at ftp features of LFSLapper

Gai-Luron

I did not understand.

How to get the text file?

Can you explain how to export a file and how does it work?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Do you know why not work?

SetPlayerName( "Name", GetCurrentPlayerVar("UserName") );
LFSCruise
Demo licensed
Information from the file storedvalue.dbs need to show a data.php file on the site. But how is this done?

And where you have specified links I watched a lot of times and I could not find anything suitable.

I also tried and

<?php 
php
   
$dbhandle 
sqlite_open('db/test.db'0666$error);

if (!
$dbhandle) die ($error);
    
$query "SELECT Name, Sex FROM Friends";
$result sqlite_query($dbhandle$query);
if (!
$result) die("Cannot execute query.");

$row sqlite_fetch_array($resultSQLITE_ASSOC); 
print_r($row);
echo 
"<br>";

sqlite_rewind($result);
$row sqlite_fetch_array($resultSQLITE_NUM); 
print_r($row);
echo 
"<br>";

sqlite_rewind($result);
$row sqlite_fetch_array($resultSQLITE_BOTH); 
print_r($row);
echo 
"<br>";

sqlite_close($dbhandle);

?>

but no one not work.
Last edited by LFSCruise, .
storedvalue.dbs show data site
LFSCruise
Demo licensed
Do you know how to do that storedvalue.dbs the file to appear on the site show data Cash, Dist and Health?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Or maybe you know how to withdraw values ​​from storedvalue.dbs Cash, Dist and Health and their show's website?
LFSCruise
Demo licensed
Quote from Tim NL :

getUserStoredValue( "LPass[COLOR="Red"][B],[/B][/COLOR]" ); [COLOR=blue]#read from StoredValue database[/COLOR]


Required here is the comma?
LFSCruise
Demo licensed
I know SQLite Manager, but where there to see it through the players' money, I can not find?
LFSCruise
Demo licensed
Do you know how to open the file and storedvalue.dbs know which player has the most money?
LFSCruise
Demo licensed
Do you know how to make the protection of the pit wrong?
LFSCruise
Demo licensed
If LFSLapper reads:
GetCurrentPlayerVar("IP") or GetCurrentPlayerVar("IPAddress") commands?

Why a file is read only Cruise.lpr Baltic characters? Why not other ^B?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
How do the show with a table of window all currently connected players NickName?

Maybe it should be something related to:
GetListOfPlayers ()
LFSCruise
Demo licensed
But there is a radar I do not need me to be only one openPrivButton and that he would show the speed.

Or do so that the COP could build the radar and if anyone out it recorded radar overpass it.

I think something could come up.
LFSCruise
Demo licensed
Is it possible to do that speed on display openPrivButton?
LFSCruise
Demo licensed
Where there would be a mistake because I think there is an error where add color to red.

$Chase[$argv] = "^7Player: " . GetPlayerVar( $argv, "NickName" ) . "%nl%" . GetCurrentPlayerVar( "NickName") . "%nl%^7Distance: ".DistFromUser($userName,$argv)." ^7m%nl%^7Speed: " . GetPlayerVar( $argv , "InstantSpeed" ) . " " . GetPlayerVar( $argv , "UnitSpeed"[COLOR="Red"] ) ) . " . %nl%" . "[/COLOR]%at%" . "^7Player: " . GetCurrentPlayerVar( "Chase" ) . "%nl%" . GetCurrentPlayerVar( "NickName") . "%nl%^7Distance: ".DistFromUser($userName,$argv)." ^7m%nl%^7Speed: " . GetPlayerVar( $argv , "InstantSpeed" ) . " " . GetPlayerVar( $argv , "UnitSpeed" ) ) " . %nl%";

How do I fix it?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Welcome,

Would anyone know how to do that on the show openPrivButton speed?


This should be something like this but to act.
main_speed = "^7{0} {1}";

openPrivButton( "speed",1,118,27,4,4,-1,32,langEngine( "%{main_speed}%" , ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") ) );

How to make tables Baltic characters?
As ^B does not always work.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
What I'm looking for the following script will create hardly to be found.
From heaven to me does not information.
How do I know if this is possible or not.
I think that it is impossible that a openPrivButton to display speed.
I have day and night I try in every way but not in ANY way to fail.

I think that there is need to create new value.
Because that's the thing I do not think they will succeed.

As the player votes for the beginning or the end I do not think it's possible to do that kicked him.

Jug over C# is somehow done.
I want to ask and maybe you can pick from C# code and another one to add to LFSLapper.


How are the numbers:
SetCurrentPlayerVar ("Numbers", round (ToNum (RandomNum (100000,999999)), 0));

Yes I would be very interesting to do with the letters that should be something or do not know:
SetCurrentPlayerVar (lettersSorts ", round (ToNum (RandomNum (AAA, ZZZ)), 0));
or
SetCurrentPlayerVar (lettersSorts ", round (ToNum (RandomNum (A, Z)), 0));
or
SetCurrentPlayerVar (lettersSorts ", round (ToNum (RandomLet (AAA, ZZZ)), 0));
or
SetCurrentPlayerVar (lettersSorts ", round (ToNum (RandomSor (AAA, ZZZ)), 0));

It is very interesting to do random sorts(a,b,c)
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Is it possible to do that only by standing on the buttons appear and disappear while moving?
LFSCruise
Demo licensed
The server must be open but can anyone save the layout and arrangement of the papules may be in the wrong hands.

It could be any exercise insim hide the save button?
LFSCruise
Demo licensed
Do you know how to make.
Joined as a player and hit CTRL + U
That he could not save the layout?
It would not allow to save the layout.
LFSCruise
Demo licensed
Quote from Tim NL :Hi,
Your free to change the PrivMSG into a button, its only a example how to show the speed.

Sinanju wrote some time ago a nice post how to use and make buttons.
Read it and play with it. This makes it more easy to understand how to make something by your own.

http://www.lfsforum.net/showthread.php?p=1494891#post1494891


In you Lapper map is also a map called "doc" with the file changes.txt
in this file you can find almost everything how and when to use something.
Its good the read it.

I could not find what want to I .Thank you very much.

How to make a car that is moving at speeds greater than 10 km / h close windows if at a lower speed to opens the windows again?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
How to make a car that is moving at speeds greater than 10 km / h close windows if at a lower speed to opens the windows again?

I would like to ask what does this value: $argv = substr( $id,6,strlen($id)); ?
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from Tim NL :

Event OnConnect() # Player event
$NickName = GetCurrentPlayerVar("NickName");
$Posabs = GetCurrentPlayerVar("Posabs");
$Groupqual = GetCurrentPlayerVar("Groupqual");
openPrivButton( "welc",25,50,150,15,12,-1,0, langEngine("%{main_welc1}%", $NickName ) );
openPrivButton( "pos",25,80,150,10,8,-1,0,langEngine("%{main_welc2}%",$Posabs,$Posqual,$Groupqual ) );
http("[URL]http://www.frh-team.net/reglapper/getserver2.php[/URL]" );
[COLOR=red]DelayedCommand( 10, OSB ); #10 sec delay and jump to OSB[/COLOR]
EndEvent

[COLOR=red]Sub OSB () #Show the buttons[/COLOR]
[COLOR=red]openPrivButton( "clos",78,120,20,10,10,-1,32,langEngine("%{main_accept}%"),OnConnectClose );[/COLOR]
[COLOR=red]openPrivButton( "ref",103,120,20,10,10,-1,32,langEngine("%{main_deny}%"),OnConnectCloseKick );[/COLOR]
[COLOR=red]EndSub[/COLOR]

Sub OnConnectClose( $KeyFlags,$id )
closePrivButton("welc&pos&clos&ref");
IF ( $enable_pitboard == "true" )
THEN
OnConnectClose_Pitboard();
ENDIF
EndSub

Sub OnConnectCloseKick( $KeyFlags,$id )
closePrivButton("welc&pos&clos&ref");
cmdLFS("/kick " . GetCurrentPlayerVar("UserName") );
EndSub


Somehow, the button does not appear at all.
I Think That The DelayedCommand not work.

My welcome windows are gui_admin_membership.lpr

Event OnConnect( $userName ) # Player event
$NickName = GetCurrentPlayerVar("NickName");
$Posabs = GetCurrentPlayerVar("PosAbs");
$Groupqual = GetCurrentPlayerVar("GroupQual");

IF ( GetUserStoredNum("MemberType") >= $MEMBERTYPE_AFFILIATE )
THEN
LoginMember($userName);
ELSE
openPrivButton( "welc",25,50,150,15,12,-1,ISB_NONE, langEngine("%{main_welc1}%", $NickName ) );
openPrivButton( "pos",25,80,150,10,8,-1,ISB_NONE,langEngine("%{main_welc2}%",$Posabs,$Posqual,$Groupqual ) );
openPrivButton( "clos",78,120,20,10,10,-1,ISB_DARK,langEngine("%{main_accept}%"),OnConnectClose );
openPrivButton( "ref",103,120,20,10,10,-1,ISB_DARK,langEngine("%{main_deny}%"),OnConnectCloseKick );
ENDIF
EndEvent

But thank you.
Last edited by LFSCruise, .
LFSCruise
Demo licensed
Quote from Tim NL :Hi,
Here just a example for a lasergun for the cops.
Its just a small example. I did not tested it but i think its working.

Type !laser username to check the speed of a driver , if the driver is to far you cant see the speed. (in this example)


CASE "!laser":
IF ( UserInGroup( "Police_O",$userName ) == 1 )
THEN
IF GetPlayerVar( $argv,"CurrNode" ) >= GetCurrentPlayerVar( "CurrNode" )-1 && GetPlayerVar( $argv,"CurrNode" ) <= GetCurrentPlayerVar( "CurrNode" )+1
THEN
privMsg( $argv . " driving " . ToPlayerUnit( GetCurrentPlayerVar( "InstantSpeed" ) ),GetCurrentPlayerVar("UnitSpeed") );
ELSE
privMsg( "To far for Laser gun" );
ENDIF
ENDIF
BREAK;


You probably read what was written previously.
I need that speed to be displayed during openPrivButton.
LFSCruise
Demo licensed
How to connect the player Throws a welcome window.

I would like the button to accept to appear after only 10 seconds.

How do I do?
FGED GREDG RDFGDR GSFDG