The online racing simulator
Searching in All forums
(5 results)
Djili
Demo licensed
case 162:
string UserCars = Conn.Cars;
int IdxCar = UserCars.IndexOf("XFG");

try
{
Conn.Cars = Conn.Cars.Remove(IdxCar, 4);
}
catch
{
Conn.Cars = Conn.Cars.Remove(IdxCar, 3);
}
if (Conn.Cars.Contains("XFG") == true)
{

string Cars = Conn.Cars.Remove(Conn.UniqueID, 3);
Conn.Cars = Conn.Cars.Remove(Conn.UniqueID, 4);
Conn.Cash += Dealer.GetCarValue("XFG");
MsgAll("^7 " + Conn.PlayerName + " ^7sell a ^1XFG");
InSim.Send_MTC_MessageToConnection("^7 You have sell ^1(XFG) ^7from Garage", Conn.UniqueID, 1);
InSim.Send_MTC_MessageToConnection("^7 Price Tag: ^1€" + Dealer.GetCarPrice("XFG") + " ^7You have: ^2€" + Conn.Cash + " ^7left", Conn.UniqueID, 1);
}



break;
Djili
Demo licensed
Again not work....

Conn.Cash += Dealer.GetCarValue("XRG");
Djili
Demo licensed
Okay Sorry... I was tried to make Car Dealer Shop in cruise.. I make XRG buy button for the car, and work.. When click to ''Buy'' i buy car(XRG) but when to try sell i sell car but i dont get money..
Djili
Demo licensed
Someone?
Cruise Car Shop Sell Button
Djili
Demo licensed
Hello! I was made Buy button and work 100%.. When click button i buy the car, but when click sell button i sell car, but dont get money... I use for Conn.Cash this: Is this wrong?

Conn.Cash += Dealer.GetCarValue("XFG");

FGED GREDG RDFGDR GSFDG