Live for Speed - LFS Main Site
- LFS World
- LFS News
- LFS Manual
- LFS Merchandise
  http://www.lfsestonia.net/

Go Back   Live for Speed > Main > LFS Programmer Forum > Program / InSim requests

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th April 2012, 17:10   #1  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
Problem with Cars

Im getting an erro on Insim...

Im editing one, that is LsGO insim, and when someone do !buy XFG , xrt wont go blue in cars show...

Can anyone help me please ? It would be good, thank you

i Tried a lot of things, but it doesn't worked..
Reply With Quote
Old 25th April 2012, 19:22   #2  -   
Chriship
S2 licensed
 
Chriship's Avatar
 
Racername: [RDSR] Frozen
Join Date: Aug 2011
Location: The Netherlands
Posts: 540
Chriship's online stats
Hello,

You're lucky i've made the thing you want one day when i was coding. ( For the LsGO Insim )

Quote:
#region ' InSim GUI '
if (C.HideGUIorNOT == 0) // Switched On GUI
{
string TempCars = "^7UF1 ^7XFG ^7XRG ^7LX4 ^7LX6 ^7FXO ^7RB4 ^7XRT ^7RAC ^7FZ5 ^7UFR ^7XFR ^7FXR ^7XRR
Here you have.
^7FZR ^7MRT ^7FBM";
if (C.Cars.Contains("UF1"))
{
TempCars = TempCars.Replace("^7UF1", "^3UF1");
}
if (C.Cars.Contains("XFG"))
{
TempCars = TempCars.Replace("^7XFG", "^3XFG");
}
if (C.Cars.Contains("XRG"))
Enjoy it !

Regards

Note: Cars will change to Yellow when buy them , put ^6 in stead of ^3 for change them to blue.

__________________

Need a LFS Server? Order one for only 1.30€ Month.http://rackservice.org
Stay tuned , Twitter: @RackService

Reply With Quote
Old 30th April 2012, 06:13   #3  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
Not working idk why
Reply With Quote
Old 1st May 2012, 09:58   #4  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
Bump, please can anyone help me ? Its easy....
Reply With Quote
Old 1st May 2012, 15:35   #5  -   
PoVo
S2 licensed
 
PoVo's Avatar
 
Racername: host
Join Date: Jun 2008
Location: Dublin, Ireland
Posts: 1,817
PoVo's online stats
Another person has already posted the solution for the problem.

If you're asking for help, put in some effort into fixing your own problem. Also post the bit of code where you think the problem is caused.

I doubt many people would be bothered to download a copy of an insim application and read the source code to find the problem just because you said "X isn't working in Y application".
Reply With Quote
Old 5th May 2012, 08:40   #6  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
my problem is in CAR REPLACE povo....


I do !buy XRG and it dont change the color
Reply With Quote
Old 5th May 2012, 09:32   #7  -   
Chriship
S2 licensed
 
Chriship's Avatar
 
Racername: [RDSR] Frozen
Join Date: Aug 2011
Location: The Netherlands
Posts: 540
Chriship's online stats
Impresora , i did gave you the solution

Quote:
#region ' InSim GUI '
if (C.HideGUIorNOT == 0) // Switched On GUI
{
string TempCars = "^7UF1 ^7XFG ^7XRG ^7LX4 ^7LX6 ^7FXO ^7RB4 ^7XRT ^7RAC ^7FZ5 ^7UFR ^7XFR ^7FXR ^7XRR
Here you have.
^7FZR ^7MRT ^7FBM";
if (C.Cars.Contains("UF1"))
{
TempCars = TempCars.Replace("^7UF1", "^3UF1");
}
if (C.Cars.Contains("XFG"))
{
TempCars = TempCars.Replace("^7XFG", "^3XFG");
}
if (C.Cars.Contains("XRG"))
Viewing that code , you need to know what you need to set into the "buy command , for set it working.

Find it yourself
__________________

Need a LFS Server? Order one for only 1.30€ Month.http://rackservice.org
Stay tuned , Twitter: @RackService

Reply With Quote
Old 5th May 2012, 11:15   #8  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
Ohhhhhh !!!! Thank you ! I will try to find, now can you help me with help that is COUTING like, im not driving and it is COUTING DOWN ?

See:

Code:
 #region ' Check Health per Kilometer '
                    if (C.HealthDist > 2000)
                    {
                        C.Health -= 1;


                    }
Code:
                    /*if (C.DistanceSincePit >= 2000)
                    {                       
                        C.Health += 1;                            
                    }*/
Reply With Quote
Old 7th May 2012, 08:47   #9  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
Bump
Reply With Quote
Old 7th May 2012, 10:15   #10  -   
PoVo
S2 licensed
 
PoVo's Avatar
 
Racername: host
Join Date: Jun 2008
Location: Dublin, Ireland
Posts: 1,817
PoVo's online stats
Code:
 #region ' Check Health per Kilometer '
                    if (C.HealthDist > 2000)
                    {
                        C.Health -= 1; 
                        C.HealthDist -= 2000;
                    }
Reply With Quote
Old 7th May 2012, 12:17   #11  -   
impresora
Demo Racer
 
Join Date: Jan 2009
Posts: 86
impresora's online stats
It doesnt count idk why :s
Reply With Quote
Reply

  Live for Speed > Main > LFS Programmer Forum > Program / InSim requests

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 13:36.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Live for Speed © 2002-2014 - Scawen Roberts, Eric Bailey, Victor van Vlaardingen