The online racing simulator
Searching in All forums
(187 results)
Silox
S2 licensed
Easy. PHP!

PHP combined with MySQL queries...

Tutorials:
http://www.tizag.com/mysqlTutorial/mysqlquery.php
Silox
S2 licensed
There is a free cruise insim on the forum somewhere... Just click the magic button!
Silox
S2 licensed
You drift lapper want?
Give one me can!
thinks speak same language me and you!

Download the lapper, enable the drift settings
Silox
S2 licensed
Quote from S14 DRIFT :

I clicked reply and was just finding the linky thing from our team forum and came back, only to find you'd beaten me! :sadbanana

Accept your lose - you can't always win
Silox
S2 licensed
Quote from S14 DRIFT :Damn, beaten.

Indeed, with about 9 minutes
Silox
S2 licensed
Quote from s14 drift :
or use photoshop and save it as quality 12 jpeg, can't see much of a difference over .bmp then. :d

+1
Silox
S2 licensed
No, the error is that you output the button, before the player gets added to the array who contains the Unique ID for the joining player where the button will be send to.

Try this instead:

// A new client joined the server.
private void NCN_ClientJoinsHost(Packets.IS_NCN NCN)
{

AddToConnectionsList(NCN); // Update Connections[] list

InSim.Send_BTN_CreateButton("^7Welcome to this server!", Flags.ButtonStyles.ISB_LEFT | Flags.ButtonStyles.ISB_DARK | Flags.ButtonStyles.ISB_DARK, 6, 35, 20, 20, 50, NCN.UCID, 40, false);


As DarkTimes said: It's easier to test a program when you press F5. It won't be compiled, but saved in a 'debug map'.

If the program crashes, you'll get more information about the crash.
Silox
S2 licensed
1. Learn english;
2. Learn editing / coding something;
3. If you can't: Still learn english, but pay someone to make it for you.
Silox
S2 licensed

http://www.lfsworld.net/isonline.NickName.gif

There you go!
Silox
S2 licensed
Quote from [ST]JoSaN :My friend that controls but the theme it to tried and of all ways does not go upon being passed eight cars jumps all but I need an help I throw of all and does not go

and you really need to learn English again instead of ordinary web translators and also learn self-searching



I can use online translators too!
Silox
S2 licensed
Quote from mat6681 :Hi All!

I need a criuse insim for S2... With:

Money
Sell/Buy Cars
Rent cars
KM/M Counter
Cops And Robbers
A Bank to Rob Insert - Withdraw Money and get Bonus every Online Hour
KM/M Bonus (like. 10KM = 50€ and 100=500€...)
When you are faster you get less money (-1 & -10...)
Lotto (Win some money from 0-2000 and some jackpot like 4000€)
Location
Time
Groups (!group cop- !group tow - !group admin - !gorup superadmin)

Send money !send <Money> <Username>
Admin pass (ONLY Kick!!!)
Super admin pass (Ban, Add police & add admin/Super admin)

Or somthing like this...

Plz pm it to me

[Sorry my bad english... but i try ]

Search around, I think there is an downloadle cruise server...
Silox
S2 licensed
Quote from Marco1 :LOOL

1. build your own and it will be the best
2. take the cruise tutoial or the insim from dougie-lampkin
3. if you wana pay me 150€ i make you a insim whit this spezials

Are you nuts?

You can download a free one this programmers forum Don't know where it is exactly...
Silox
S2 licensed
Yes for all, except the InSim systems.

I think InSim systems are systems that make a server unique. Programmers try to create new / original stuff to make their servers attractive. If LFS would introduce this basic InSim problems, the servers who have this applications will become 'normal'.

An InSim app is just a simple app with a config file. It's an external program which connects to a server with an IP, port and Adminpass.

PS.: Headfolder = Main folder
Last edited by Silox, .
Silox
S2 licensed
Well, if you don't know it, it's easy to test...

Just let LFS output all those variables, when you leave the pits for example...

I could do it, and put the info here, too bad I'm kinda busy now
Silox
S2 licensed
Quote from lysergic :Ready to do it. But I cannot find anybody. Are You avaiable?

At the moment - no... Need to finish 3 and make 2 new sites...
Silox
S2 licensed
It's not a stupid idea, but I think you should hire (Read: pay) someone. Not just a regular programmer but someone who's used to work with all those InSim applications.
Silox
S2 licensed
I think that's the right way, I already thought about that but got confused with the problems I had
Silox
S2 licensed
I'm not sure, but I think he means the site's codec. I searched around a bit and ended up here:

fwrite($fh,utf8_encode($configUpdated));

I have no experience using fwrite in PHP, so I don't know if this is the right way. I had problems with UTF-8 encoding in VB.net's write function with LFS' special characters.

Veel geluk ermee!
Bonne chance!
Last edited by Silox, .
Silox
S2 licensed
Quote from LorenzoN1 :Sorry, but what do you really mean?

Your PC gets overheated; you can open your PC and use a vacuum cleaner with a small brush to clean out the dirt from the fans and stuff...
Silox
S2 licensed
Quote from Napalm Candy :I already had this, but this is not VB, is in .NET and VisualC. I need in VisualBasic

You mean the VB 6.0 version?

I don't have a connection for that, but I think you can use the same .dll file and just edit the syntax a bit.
Silox
S2 licensed
Quote from Heiko1 :Can someone make me the code for:

First Place
Total Distance
Total Driven Laps
Races Finished
Fuel Burnd


PLEASE!


HAPPY NEW YEAR!

You want us to make a System for you? That's gonna cost some money I think...
Silox
S2 licensed
Quote from Heiko1 :Thanks silox

PS: Was on ur server with ur system.

FirstCorner+Demo's = Crash carambolage ^^ but nothing against server its very less lag!

We're planning to make a 'Noob server'; 1 lap Crash!
Well, as the InSim Program is made with a file to save all the data in, the bigger the file gets, the longer to load...

Good luck on your Ranking System!

P.S.: I think it's better to work with a MySQL database to save all the info:
- Much easier way of updating points
- Quicker (I think)
- Better way of backupping

(The 500servers admin accidentally overwrote one of our ranking files... Result: We ended up with a 1 week old file, so we gave everybody more points )

P.P.S.: Watch out with the PubStat Tarpit! You can only make 1 request every 4 seconds...


Quote from DarkTimes :It's actually the fifth one.

pb = results(5)


Didn't test it, was a guess...
Silox
S2 licensed
Quote from Heiko1 :The only thing what i need is that i can insert LFSW stats into a Button

Well, DarkTimes (almost) gave you the code for it...
I'll show you in VB.net (not tested, it can be bugged) how to recieve a PB from LFSW in milliseconds with PubStat for a pre-defined racer.


' Place the piece of script where you want to create the button

string pubStatUri = "http://www.lfsworld.net/pubstat/get_stat2.php?version=1.4&idk=<Your_Ident_Key_Here>&action=hl&racer=Silox";

' This returned a lot of PB's for my account

' Now the requesting part

WebRequest request = WebRequest.Create(pubStatUri);

using (WebResponse response = request.GetResponse())
using (StreamReader reader = new StreamReader(response.GetResponseStream()))
{

' The streamreader reads every time 1 line from the file, so we'll need a loop

' Save the return info in a string, called line

string line;

' Loop trough all the lines of the file

while (line = reader.ReadLine()) != null)
{

' E.g. I want to get my XFG Bl1 PB
' Which is, on the Pubstat like this:
' 240 XFG 45500 0 0 94230 2 1201295794 (Don't know for sure if it's this one)
' Now we'll modify the code:
' I should cut the code into an array

array results

results = String.split(line)

' If BL1 and XFG

If results(0) = 240 and results(1) = "XFG" then

' Save the total time in Miliseconds
string pb
pb = results(7)
' Exit the loop so it will take less time
exit loop;

}
}


Now you have the pb of the racer in milliseconds, you'll just need to edit the pb a bit to make it display in hours, minutes, seconds, hundreths...
And then make a button of out it, using the InSim.CreateButton thing
Last edited by Silox, .
Silox
S2 licensed
You can use the PubStat (watch out with the maximum of requests) to request the stats, and use StreamReader (or another http reader included in C#) to read the information...

I have no experience with C# nor with PubStat, I just know it's possible this way
Silox
S2 licensed
You can use the LFSLapper if you need one on your server...

@Etem: Wtf?
FGED GREDG RDFGDR GSFDG