Windows help
Visual C++ Error wrote:Unhandled exception at 0x759aa4b9 in bitfighter_d.exe: 0xC0000005: Access violation reading location 0xfeeefeee.
2) In GameType.Cpp, how do i add multiple death messages that will display either in order or randomly? I mean this code:
- Code:
- if(killer) // Known killer, was self, robot, or another player
{
if(killer == victim)
if(killerDescr == "mine")
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s mine'd self", victim.getString());
else
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s comitted suicide", victim.getString());
else
if(killerDescr == "mine")
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s was mine'd by %s", victim.getString(), killer.getString());
else
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s zapped %s", killer.getString(), victim.getString());
}
else if(killerDescr == "mine") // Killer was some object with its own kill description string
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s was mine'd", victim.getString());
else if(killerDescr != "")
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s %s", victim.getString(), killerDescr.getString());
else // Killer unknown
clientGame->displayMessage(Color(1.0f, 1.0f, 0.8f), "%s got zapped", victim.getString());
#endif
You can already see i changed the current ones.