The online racing simulator
Searching in All forums
(474 results)
sun
S2 licensed
Quote from dawesdust_12 :Sun:
1) You haven't learned. Why would anyone try to help you when you still haven't proved that you've tried to learn.

And how would YOU know? Exactly. You don't know me from 4 years ago. So don't THINK you do.
sun
S2 licensed


Actually the code above is mine. I've just took the time to find what the variables are. Year 9 High School - Cannot afford to waste my time on peoples negative opinions about me. You was like that once. Get over it.

----------------------------

Now getting back onto topic which like were 'SUPPOSED' to be on.

I just dont understand how this does not work and the program just skips through all 3 of them...

if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[0].PLID)].UniqueID)].TotalDistance / 1000 == 100) ;

In my sense.... If the user has driven 100 KM, give the user 2000 cash e.g....

then 'goto fourthousand;'

fourthousand:
// 4000 Bonus (200 KM)
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[0].PLID)].UniqueID)].TotalDistance / 1000 == 200) ;
{

So the program should wait untill the user has driven 200 KM. Right?
sun
S2 licensed
Yeh. Thats why i added a "goto
" function. But that does not seem to be working either. I tested it out, an it just cycles through the code, 2000 4000 6000. But does not give me any money.

Could anyone correct my code please?
sun
S2 licensed
Yes. Thanks!

Would this be right?

// KM bonuses
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[0].PLID)].UniqueID)].TotalDistance / 1000 == 100) ;
{
// Give them £2000
int cashbonus = 2000;
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash = cashbonus;
InSim.Send_MST_Message(Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username + " /msg ^7Received a Cash Bonus of £2000");
InSim.Send_MST_Message("/msg ^7For Driving A Long Distance");

}

Km Bonus
sun
S2 licensed
Hi all.

I have not really been on for at least 4 -5 years, so first I would like to say, Hi again.

-------------------------------------------------

Ok, I've just found my InSim, and I want to add a Km Bonus System. Yes thats right a KM Bonus System. Dont be alarmed! I've got my code here, but I just need someone to help me out with the variables.

My Code so far is:

// KM bonuses
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[0].PLID)].UniqueID)].TotalDistance / 1000 == 100) ;
{
// Give them £2000
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash = cashbonus;
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username += cash;

}

Now as we see here the code inside the statement will not work. This is what I need help with. What I want to do is put

"Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash"

into some kind of... Oh, forgot the name... Damn.... But some kind of Integrar should I say for now. For example:

Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash == CashBonus;

Can anyone help me?

Thanks!
sun
S2 licensed
Hey!

After Along time with the insim not being used, and as I was bored, I wanted to get back into the Cruising State! So I thought I'll get my InSim online, and my server, so cruisers, can now enjoy more fun!

Updates:
I've updated the InSim, with the Correct Site Address.

[WWC] World Wide Drift :: Server Online *With LFS Lapper*
sun
S2 licensed
Thanks!

Just creating the WWC site
[WWC] World Wide Cruise
sun
S2 licensed
Hey all!

Since my short return, I've finally got around to host a server 24/7 near enough.

The Server name is: [WWC] World Wide Cruise

And some stuff I sorted out on the InSim, So it'll run like a charm!

Anyone is welcome to join the server! Please hop in once you've gotta moment, to see!

I'm looking for some people to create a layout for free, since I wiped both OS's on my computer, and out windows 7 on, I accidently forgot to backup the layout.

Enjoy!

Kind Regards,

- Owen
sun
S2 licensed
Ah Problem sorted.

I had Bridged Connections
Dedi Server - TCP
sun
S2 licensed
Hey all.

Guess its been along time since I've posted on here, but since its an LFS server issue, Its good to get help on the right forums.

----------------------------------------------------

I've never had this issue before, but here goes. Recently I've installed Windows 7, and since I had a folder with my cruise server app in, I forgot to backup the file. Anyways, I went ahead and download the Dedi Server, from lfs.net, and once everything is configured, I've come to launch the dedi server, and the server console says

TCP socket : Bind Failed

Usually when I have this issue, its either when I have multiple servers running, but since I only want 1 server running, I dont understand why its showed me that.

I'm running Windows Server 2003 Enterprise, as my OS, and Applications are:

Kerio Mail Server

ZFTP Server


None of these are using port 63392.

My firewall is off

I port forwarded successfully on the router to my Ip, and the IP is correct, but still it shows that message.

Any Ideas?
sun
S2 licensed
Hey Kuhs.

It was kind of you to share this. It really got me thinking after a while, Because At the time I wrote my code, Variables, functions Everything was Wizzing around my head, and I couldnt get it Lined Up!
sun
S2 licensed
Quote from Shadowww :It protects kiddies from removing copyrights.

Still that's work-aroundable with webserver as backend and some content-processing proxy which would remove copyright div/span/etc from page (sure there are other methods aswell), but I don't think sun would be able to do it.

Exactly. This is the file: ( Note: I had to put it into .txt because it wouldnt allow me to upload a .php file.
sun
S2 licensed
What do you mean " He thinks? ". I Know damn right I havnt touched it.
sun
S2 licensed
pfff!

Check yuor UserName, Password Is EXACTLY THE SAME IN THE Form1.cs.

See if you can log into MySQL in the MySQL Administrator. Once done you will need to make a Database. Go into Catalogs, and right click in the left, and click on

Create Schema

Once done that call your database ( e.g Insim ). Press ok, and make sure you have full Rights in your database User, else you will go no where.

Now fill in the Insim.

Edit either these lines:

DBUSER ( Your Username to login into MYSQL )

DBPASS ( Your password to login into MySQL )

DB ( Your Database Name )

DBPORT - IF THERE IS ONE IN THE INSIM!

Now compile. Either press F5.
Last edited by the_angry_angel, . Reason : You really don't help yourself sometimes sun, and to be honest I'm struggling to see who this post was addressed to...?
PHPMotion Problem -- PHPShield
sun
S2 licensed
hey all,

I've recently installed clipbucket on my site, and it seems to be working at 95%. But Because no one answers on the forums there, I began lokking for a new Video Sharing Script. I've come accross phpmotion, which is good, but its really annoying to get working.

First of all, you need php shield. It came in the package, so I guess I had to put it into my php folder so i did. BTW, I use WAMP Server as my host. Anyways, It still came up after i restarted Apache in WAMP, but still had the same problem. So In the php.ini I inserted the php shield file name. Because I put all the files inside /ext. Tryed that, and still got the same error. So I just got really frustrated, and put the phpshield folder in:

C:\wamp\bin\php\php5.2.9-2\ext
C:\wamp\bin\php\php5.2.9-2\
C:\wamp\bin\php\
C:\wamp\bin\
C:\wamp\

Guess what? I think I got somewhere Because now I have this damn error:

Fatal error: phpSHIELD Loader - script checksum error [12] Encoded script was modified in C:\Web\VG\classes\config.php on line 5

And no I havnt edited the file Config.php.

Is this something I'm doing wrong or is it LACK of programming at their end?

Can someone please help me?
sun
S2 licensed
Quote from Etem :

not 24/7 online Cruise server :
World Wide Cruise

Hopefully it will be 24/7 when i get a chance to sort out some stuff first.
sun
S2 licensed
Quote from Krammeh :and set that milestone as done.

Don't forget to clear the milestone done, if they leave the track.

Thats the kind of part I get stuck on. On my Job command, When someone types in the command to get a job, it turns a variable to true. then where the bank is I've set it so when the user goes to the bank ( part of the job ) it will give them cash. and it sets jobs = false; But it still keeps on giving them money.

Now after alot of thinking I had 2 options. One just using a new variable for example...

].KmBonus = 1);

Or i could just use what rob said. But edited.

if (totaldistance > 100 & totaldistance < 100)
{
//award bonus
}

I think i've done something like this in my later applications, when it gets to 100, it gives cash, but it cant give anymore because its supposed to stop at 100 to.

i'm not sure if I'm thinking on the right line. But I'm 67& sure that it may work.
Last edited by sun, .
sun
S2 licensed
The Money. seems its in an infinite loop.
sun
S2 licensed
nope it still goes up.
sun
S2 licensed
So you mean something like this

[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#000000] (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000 == 100)[/COLOR]
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 19155;
}
[/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][/SIZE]


sun
S2 licensed
Wait a minute... When I use the code, It gives me 1000 when its on 100km. and if i'm correct, it will stop at 199km. so if there was a way to only give 100 out once, Then i think it would work.
sun
S2 licensed
Ah, thanks i'll give it a try
sun
S2 licensed
Quote from EliteAti :Advertising might be called as administration tricks
Server announcing is allowed.

O..k
sun
S2 licensed
Is it possible to host a server on port 80? I know its for web, but When i tryed it it showed the exact same error above.
A Simple KM bonus System
sun
S2 licensed
hey,

I'm still wondering how to give a bonus when a certain kiloMeter has been driven. I'm willing to give you my code below.
[SIZE=2][COLOR=#008000][SIZE=2][COLOR=#008000]
if (100 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 19155;
}
if (200 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 29000;
}
if (300 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 30000;
}
if (400 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 40000;
}
if (500 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 50000;
}
if (600 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 60000;
}
if (700 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 70000;
}
if (800 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 80000;
}
if (900 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 90000;
}
if (1000 < Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000)
{
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += 100000;
}
[/COLOR][/SIZE][/COLOR][/SIZE]

The only problem with this is that, it keeps on giving you money constantly, every second. I really dont know whats wrong.

Can anyone help me?
FGED GREDG RDFGDR GSFDG