The online racing simulator
Reset
(4 posts, started )
Reset
Hi. I want a code in cruise when player resets car it cost him for example 400. I tryed to make but I just couldnt get it.
Post the code you use to do this, we might be able to tell you what's wrong with it.
Quote from MadCatX :Post the code you use to do this, we might be able to tell you what's wrong with it.

Sorry, I dont have it anymore
Well, you can't expect us to code it for you, but the overall logic should be like this.


List plrCash<int> = new List<int>(); //Holds current cash of each player

if(received ISP_CRS) //Player had his car reset
{
int plID = ISP_CRS.PLID; //Get ID of the player that had his car reset from the ISP_CRS packet
plrCash.at(plID) -= 400; //Lower his cash by 400 bucks
}

Please note that this is written in a pseudo-code, so you have to rewrite in C# and adapt it to suit your application's code.

Reset
(4 posts, started )
FGED GREDG RDFGDR GSFDG