Raised This Month: $7 Target: $400
 1% 

SourceMod Development Roundup (1.7.2 - 2015/11/03)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 11-04-2015 , 16:30   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#11

(depending on interest and commit frequency)
__________________
Chdata is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 11-04-2015 , 19:27   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#12

I love this. Now I don't have to sift through the commit messages anymore .
__________________
~Wliu
Wliu is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-04-2015 , 21:22   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#13

There's some exciting stuff in 1.8 that I wasn't aware about. I guess I'll have to switch to it!
__________________
Dr. McKay is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 11-05-2015 , 02:39   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#14

Quote:
Populate MaxClients before OnPluginStart is called.
will this be able to be used globally?

like

int g_iUserVariable[MaxClients+1];
__________________
Starbish is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-05-2015 , 02:55   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#15

Quote:
Originally Posted by Starbish View Post
will this be able to be used globally?

like

int g_iUserVariable[MaxClients+1];
No, it's not a constant. static array sizes have to be defined at compile time.
__________________
asherkin is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-05-2015 , 03:23   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#16

It does, however, mean that we can now safely use the MaxClients variable within OnPluginStart().
__________________
ddhoward is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-05-2015 , 05:40   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#17

Quote:
Originally Posted by ddhoward View Post
It does, however, mean that we can now safely use the MaxClients variable within OnPluginStart().
We always could have used it. It was just 0 at the time, unless you late-load a plugin.
Potato Uno is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-05-2015 , 15:21   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#18

Quote:
Originally Posted by ddhoward View Post
It does, however, mean that we can now safely use the MaxClients variable within OnPluginStart().
__________________
ddhoward is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 11-05-2015 , 17:26   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#19

I still don't know what "safety" means in that context. I used it in OnPluginStart and never was bitten in the ass by it. What did I miss?
Potato Uno is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-06-2015 , 09:24   Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
#20

Asherkin merged a fix into 1.8-git5779 this morning that fixes GetMapDisplayName not working properly on CSGO Windows.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Closed Thread


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 04:46.


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