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

MM:S Get Current Mapname


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ajaxx
Senior Member
Join Date: Oct 2009
Old 06-30-2013 , 13:57   MM:S Get Current Mapname
Reply With Quote #1

I seem to be having an issue with the following statement

Code:
gpGlobals->mapname
It causes my Windows server to crash. Is there another way to get the name of the current map?
Ajaxx is offline
psychonic

BAFFLED
Join Date: May 2008
Old 06-30-2013 , 14:43   Re: MM:S Get Current Mapname
Reply With Quote #2

Are you setting gpGlobals somewhere?

Edit: ie. with something like this in your ISmmPlugin::Load impl,
Code:
gpGlobals = ismm->GetCGlobals();

Last edited by psychonic; 06-30-2013 at 14:44.
psychonic is offline
Ajaxx
Senior Member
Join Date: Oct 2009
Old 06-30-2013 , 15:12   Re: MM:S Get Current Mapname
Reply With Quote #3

Quote:
Are you setting gpGlobals somewhere?
I sure didn't

It's working now, thanks!
Ajaxx is offline
Reply


Thread Tools
Display Modes

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 12:23.


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