The online racing simulator
LFS_External - Cruise Project - Cars Buggy
Hi,

I've been making my own project for fun but i got a problemo

I've updated my version to 1.1.1.7 and ofcourse if you make the buttons too long it will bug out. So for the fix i used this code. :

string TempCars1 = "^7*^2* ^7UF1 ^7XFG ^7XRG ^7LX4";
string TempCars2 = "^7LX6 ^7RB4 ^7FXO ^7XRT ^7RAC ^7FZ5";
string TempCars3 = "^7UFR ^7XFR ^7FXR ^7XRR ^7FZR";
string TempCars4 = "^7MRT ^7FBM ^7FOX ^7FO8 ^7BF1 ^2*^7*";
InSim.Send_BTN_CreateButton(TempCars1, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 49, 9, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars2, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 68, 10, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars3, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 90, 11, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars4, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 110, 12, C.UniqueID, 2, false);

That fixed my problem but now if you have the car it will get highlighted right? Well thats basiclly what everyother cruise server has so this is what i have :

string TempCars1 = "^7*^2* ^7UF1 ^7XFG ^7XRG ^7LX4";
string TempCars2 = "^7LX6 ^7RB4 ^7FXO ^7XRT ^7RAC ^7FZ5";
string TempCars3 = "^7UFR ^7XFR ^7FXR ^7XRR ^7FZR";
string TempCars4 = "^7MRT ^7FBM ^7FOX ^7FO8 ^7BF1 ^2*^7*";
InSim.Send_BTN_CreateButton(TempCars1, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 49, 9, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars2, Flags.ButtonStyles.ISB_C1, 4, 45, 0, 68, 10, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars3, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 90, 11, C.UniqueID, 2, false);
InSim.Send_BTN_CreateButton(TempCars4, Flags.ButtonStyles.ISB_C1, 4, 40, 0, 110, 12, C.UniqueID, 2, false);
// TempCars 1
if (C.Cars.Contains("UF1"))
{
TempCars1 = TempCars1.Replace("^7UF1", "^2UF1");
}
if (C.Cars.Contains("XFG"))
{
TempCars1 = TempCars1.Replace("^7XFG", "^2XFG");
}
if (C.Cars.Contains("XRG"))
{
TempCars1 = TempCars1.Replace("^7XRG", "^2XRG");
}
if (C.Cars.Contains("LX4"))
{
TempCars1 = TempCars1.Replace("^7LX4", "^2LX4");
}
// TempCars2
if (C.Cars.Contains("LX6"))
{
TempCars2 = TempCars2.Replace("^7LX6", "^2LX6");
}
if (C.Cars.Contains("RB4"))
{
TempCars2 = TempCars2.Replace("^7RB4", "^2RB4");
}
if (C.Cars.Contains("FXO"))
{
TempCars2 = TempCars2.Replace("^7FXO", "^2FXO");
}
if (C.Cars.Contains("XRT"))
{
TempCars2 = TempCars2.Replace("^7XRT", "^2XRT");
}
if (C.Cars.Contains("RAC"))
{
TempCars2 = TempCars2.Replace("^7RAC", "^2RAC");
}
if (C.Cars.Contains("FZ5"))
{
TempCars2 = TempCars2.Replace("^7FZ5", "^2FZ5");
}
// TempCars3
if (C.Cars.Contains("UFR"))
{
TempCars3 = TempCars3.Replace("^7UFR", "^2UFR");
}
if (C.Cars.Contains("XFR"))
{
TempCars3 = TempCars3.Replace("^7XFR", "^2XFR");
}
if (C.Cars.Contains("FXR"))
{
TempCars3 = TempCars3.Replace("^7FXR", "^2FXR");
}
if (C.Cars.Contains("XRR"))
{
TempCars3 = TempCars3.Replace("^7XRR", "^2XRR");
}
if (C.Cars.Contains("FZR"))
{
TempCars3 = TempCars3.Replace("^7FZR", "^2FZR");
}
// TempCars 4
if (C.Cars.Contains("MRT"))
{
TempCars4 = TempCars4.Replace("^7MRT", "^2MRT");
}
if (C.Cars.Contains("FBM"))
{
TempCars4 = TempCars4.Replace("^7FBM", "^2FBM");
}
if (C.Cars.Contains("FOX"))
{
TempCars4 = TempCars4.Replace("^7FOX", "^2FOX");
}
if (C.Cars.Contains("FO8"))
{
TempCars4 = TempCars4.Replace("^7FO8", "^2FO8");
}
if (C.Cars.Contains("BF1"))
{
TempCars4 = TempCars4.Replace("^7BF1", "^2BF1");
}

But the cars are not lighting up! I tryed again by removing the ** ** at the front and the end but its still not working...

I really need help with this, this has been bugging me for ages! :P

Thanks!

Yoran
Just fixed it... Just a second after posting my thread xD

FGED GREDG RDFGDR GSFDG