The online racing simulator
Searching in All forums
(6 results)
gogis
S3 licensed
Quote from Flame CZE :I think this should work, assuming the players dictionary is of type <int, IS_NPL>:

static void PlayerLeft(InSim insim, IS_PLL pll)
{
IS_NPL player = players[pll.PLID];

// Remove player.
players.Remove(pll.PLID);
Console.WriteLine(player.PName + "Player removed: player left the track");
}


Thank you very much.
gogis
S3 licensed
Hello everyone, i need assistance with my program. With this code i can add players to the dictionary and write the name in the console. I cant figure out how to write to console player name when player leaves the track. Its been a long time since i did any programming, so excuse me if this is a really simple solution.

static void NewPlayer(InSim insim, IS_NPL npl)
{
if (players.ContainsKey(npl.PLID)) // Adding players to players dict
{
// Player leaving pits, just updating NPL object
players[npl.PLID] = npl;
Console.WriteLine(npl.PName + " PLID updated");
}
else
{
// Add new player.
players.Add(npl.PLID, npl);
Console.WriteLine(npl.PName + " added");
}
}
static void PlayerLeft(InSim insim, IS_PLL pll)
{
// Remove player.
players.Remove(pll.PLID);
Console.WriteLine("Player removed: player left the track");
}

gogis
S3 licensed
Quote from Racer Y :My son has this deal on his computer that's similar to the oculus rift. It's some sort of camera that recognizes the user and traces their movements similar to the Wii. He uses it for Project Cars it changes the view of the game based on your movements. I dunno what the hell the thing is called as I just don't care all that much about high tech gadgets anymore, but it is neat. I'll probably break down and get Rockingham after I get back (going to Belize for a couple of weeks.

It might be TrackIR
gogis
S3 licensed
ok ill admit, i have crack for s2 version, but i cant play on legal servers, and i dont want it. i like racing in single and i want BMW M3 GTR skin from NFS MW. Please make it
gogis
S3 licensed
because i like that car and i want that skin in lfs.
gogis
S3 licensed
Guys, i need BMW M3 GTR skin from NFS MW for fxr, like that http://www.tkshare.com/Image/2008101361433177801.jpeg
FGED GREDG RDFGDR GSFDG