PDA

View Full Version : NVM


WildCard65
01-01-2014, 12:10
Nvm, this was a feature request but it seems it was a bug in my code from leaking handles(because idk that I needed to set hItem to INVALID_HANDLE after calling CloseHandle in order to prevent errors about invalid handle)

friagram
01-02-2014, 02:03
Why don't you just set a global boolean onmapstart to decide if it's mvm, and then use an if statement in ongivenameditem, like any other sane person?

WildCard65
01-02-2014, 07:11
Why don't you just set a global boolean onmapstart to decide if it's mvm, and then use an if statement in ongivenameditem, like any other sane person?

How would I detect if the map is mvm.

Powerlord
01-02-2014, 09:58
How would I detect if the map is mvm.

if (GameRules_GetProp("m_bPlayingMannVsMachine"))
{
}

asherkin
01-02-2014, 10:33
This is logic that belongs in your plugin.

WildCard65
01-02-2014, 11:03
Nvm, it was just a bug in my code of leaking handles, but thx to asherkin in a different thread, it's sorted out.