The online racing simulator
Searching in All forums
(896 results)
mcgas001
S3 licensed
Quote from evilpimp :Lol @ the breaking news from Sean :P

hehe, I couldnt resist muhahaha. On a serious note though, They do look like they can take quite a beating, I wouldnt mind having a ago on some before ever buying them tho.
mcgas001
S3 licensed
Why do you have Sam's avatar? lol
mcgas001
S3 licensed
Quote from Jakg :The police wouldn't have a chance!

Tonights News:
A bank in the local town has been robbed by what can only be called a bouncing man. Locals said "this man ran into the bank with a gun and escaped over a 10FT fence with over £10,000 in cash". The locals and pursuiing police where both amazed at his ability to jump so high and so quick. A few miles down the road some metal bouncing stilts where found, Were these involved? The police are getting DNA and investigating as we speak.

Thats all from me, Back to the studio.


LMAO, I couldnt resist
Last edited by mcgas001, .
mcgas001
S3 licensed
ROFL, I want some!!!! Imagin the police chasing you, You could just jump a fence and be gone
mcgas001
S3 licensed
So caring Sam..

mcgas001
S3 licensed
You will need to need to store the "admin" users somewhere and then check it when someone does a command or something that is "protected".
mcgas001
S3 licensed
Why not look in the_angry_angel's sig and click "Setting up a LFS server"
mcgas001
S3 licensed
Gah!, How can you two argue for so long...
mcgas001
S3 licensed
Quote from dawesdust_12 :So... uh,... who wants some crack. Wholesome, hearty crack for sale. PM with offer.

Is it good shit?
mcgas001
S3 licensed
People will start selling drugs on this forum next
mcgas001
S3 licensed
I still cant do nothing, Sadly. Since passing my test i now have to get my car fixed up. Pay around £200 on the first insurance installment, Get an MOT and then TAX. Ill still try though.....
mcgas001
S3 licensed
Quote from sun :ok

Error 2 The name 'Box' does not exist in the current context C:\Documents and Settings\Owen\Desktop\Cruise Tutorial\LFS_External_Client\LFS_External_Client\Form1.cs 565 17 LFS_External_Client

if (box.Contains(MCI.Info[0]

theres somthing wrong with the 'box' thing

Quote from AndroidXP :To be honest, I really don't understand what that code is supposed to do. Especially the if statements that just end with a semicolon, thus doing nothing.

If you want to check if the player is within a certain "box" on the track, then you first have to define the coordinates of the box, like this:


[B]Rectangle box = new Rectangle();[/B]
[B]box.Top = 6 * 65536; //6 metres to the north of the track centre point[/B]
[B]box.Left = 3 * 65536; //3 metres to the east[/B]
[B]box.Right = 6 * 65536; //6 metres to the east[/B]
[B]box.Bottom = 3 * 65536; //3 metres to the north[/B]

... or you do it with coordinates and width/height

box.X = 3 * 65536; //3 metres east
box.Y = 6 * 65536; //6 metres north
box.Width = 3 * 65536; //3 metres
box.Height= 3 * 65536; //3 metres

... respectively negative values if you want to go to south/west

Then you can check if the player is inside the box with:

if(box.Contains(MCI.Info[0].X, MCI.Info[0].Y))
{
//do stuff
}


...
mcgas001
S3 licensed
Quote from AndroidXP :Of course it does, don't forget that you actually have to add it in the project references.

Like that
http://msdn2.microsoft.com/en- ... 005_31(en-us,MSDN.10).gif
Right-click > Add reference > .NET tab > System.Drawing

Uh, Silly me....i tried to do it in a console app hehe, on console apps it not added by default...Sorry
mcgas001
S3 licensed
Quote from AndroidXP :.Net
Can be found in the System.Drawing namespace

Aha, Thanks!


E: That doesnt exist?!!?
mcgas001
S3 licensed
Out of intrest Android, is Rectangle part of the .Net or an object you created and defined?
mcgas001
S3 licensed
Congrats, Welcome to S2
mcgas001
S3 licensed
Quote from Bob Smith :****, that's some ban-happy mods. Banning for posting in the wrong section? Just move the damn thread and tell them they did wrong. Rick rolling? Fair enough.

Dustin is right, You need to be more like them
mcgas001
S3 licensed
Quote from dawesdust_12 :...and a certain user in the Programaticer forum would have been banned long ago.

mcgas001
S3 licensed
Quote from DarkTimes :Anyway... I might be totally on the wrong track, so sorry if I'm not making any sense...

The only way im lost is by your amazing programming skils
mcgas001
S3 licensed
Quote from Luke.S :down with road tax!!!

Why am i thinking you are just posting in all threads to boost your post count. Do you think it makes you look cool or something? It doesnt.
mcgas001
S3 licensed
Quote from -{RR}-Cannon-Fodder :I'm willing to put some coding time into the project, supply the server and hosting page for this project. i dont know much about C, but dad has made a few arcade attractions, am sure he can help me along the way.

You mean C#
mcgas001
S3 licensed
Add this to main/Form_load

[SIZE=2]BackUp.Enabled = [/SIZE][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2]BackUp.Elapsed += [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] System.Timers.[/SIZE][SIZE=2][COLOR=#2b91af]ElapsedEventHandler[/COLOR][/SIZE][SIZE=2](BackUp_Elapsed);[/SIZE]

Then add this code somewhere in the class, but not in a method.


[SIZE=2]System.Timers.[/SIZE][SIZE=2][COLOR=#2b91af]Timer[/COLOR][/SIZE][SIZE=2] BackUp = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2] System.Timers.[/SIZE][SIZE=2][COLOR=#2b91af]Timer[/COLOR][/SIZE][SIZE=2](300000);[/SIZE]

[SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] BackUp_Elapsed([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, System.Timers.[/SIZE][SIZE=2][COLOR=#2b91af]ElapsedEventArgs[/COLOR][/SIZE][SIZE=2] e)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff] foreach[/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#2b91af]clsConnection[/COLOR][/SIZE][SIZE=2] C [/SIZE][SIZE=2][COLOR=#0000ff]in[/COLOR][/SIZE][SIZE=2] Connections)[/SIZE]
[SIZE=2][COLOR=#2b91af] FileInfo[/COLOR][/SIZE][SIZE=2].UpdateUserLeave(C.Username, C.Cash, C.Cars);[/SIZE]
[SIZE=2]}[/SIZE]

Probley not good practice, but works none the less...
Last edited by mcgas001, .
mcgas001
S3 licensed
Quote from Jakg :Without Googling - 0.62124

EDIT - This thread is embarrassing - Everyone is making their OWN Cruise program. Why can't you, as a group of mainly skilled programmers, finish this "open source" cruise program off rather than taking someones hard work and butchering it for your own personal private stuff? ATM I can see several people trying to get a "not be a finished product and should be used as a simple example or tutorial in creating your own" program working for a purpose it's not quite fit to do (yet), with no programming experience.

I would love to help, but alas I have no programming experience (I even failed the C# - "C Pound or C Sharp" test)

I dont see what you mean by finish this. The current way cruise servers are, Is who has the best. Thats the way i see it, If you look at that and then relate that back to this thread. You will see that this could never been finished. No one knows why the original developer released this, Maybe he wanted to make one and then gave up and sent it to the_angry_angel, Thats not my point though. My main point is that you cant put a "finish" on something like this, if you can, please explain. Its kinda what DarkTimes explains a bit above, about getting all the Kudos.

Quote from DarkTimes :I've said before, I will help with the code for any proper open source cruise project that's get started. What we need is some experienced hacker, who believes in open-source software and 'gets' the whole cruise thing, to come along and start the ball rolling... That person must exist somewhere...

Tbh, I dont see why you wanna bother. If you do, why not use this one. Its basically half done and people are using it already. Why confuse them with something new?
Wrong Join Date
mcgas001
S3 licensed
I have noticed this before, i only decided to act today as i saw it again. The "Welcome to newest member" and there "join date" contridict themselfs. Check pics..
mcgas001
S3 licensed
Gah, Something else to confuse new drivers like me :|
FGED GREDG RDFGDR GSFDG