Raised This Month: $51 Target: $400
 12% 

NVM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-01-2014 , 12:10   NVM
Reply With Quote #1

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)

Last edited by WildCard65; 01-02-2014 at 11:02.
WildCard65 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-02-2014 , 02:03   Re: callback for mvm
Reply With Quote #2

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?
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-02-2014 , 07:11   Re: callback for mvm
Reply With Quote #3

Quote:
Originally Posted by friagram View Post
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.
WildCard65 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-02-2014 , 09:58   Re: callback for mvm
Reply With Quote #4

Quote:
Originally Posted by WildCard65 View Post
How would I detect if the map is mvm.
PHP Code:
if (GameRules_GetProp("m_bPlayingMannVsMachine"))
{

__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-02-2014 , 10:33   callback for mvm
Reply With Quote #5

This is logic that belongs in your plugin.
__________________
asherkin is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-02-2014 , 11:03   Re: NVM
Reply With Quote #6

Nvm, it was just a bug in my code of leaking handles, but thx to asherkin in a different thread, it's sorted out.
WildCard65 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode