AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   News (https://forums.alliedmods.net/forumdisplay.php?f=59)
-   -   SourceMod Development Roundup (1.7.2 - 2015/11/03) (https://forums.alliedmods.net/showthread.php?t=274188)

Chdata 11-04-2015 17:30

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
(depending on interest and commit frequency)

Wliu 11-04-2015 20:27

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
I love this. Now I don't have to sift through the commit messages anymore :P.

Dr. McKay 11-04-2015 22:22

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
There's some exciting stuff in 1.8 that I wasn't aware about. I guess I'll have to switch to it!

Starbish 11-05-2015 03:39

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
Quote:

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

like

int g_iUserVariable[MaxClients+1];

asherkin 11-05-2015 03:55

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
Quote:

Originally Posted by Starbish (Post 2360066)
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.

ddhoward 11-05-2015 04:23

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
It does, however, mean that we can now safely use the MaxClients variable within OnPluginStart().

Potato Uno 11-05-2015 06:40

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
Quote:

Originally Posted by ddhoward (Post 2360083)
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.

ddhoward 11-05-2015 16:21

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
Quote:

Originally Posted by ddhoward (Post 2360083)
It does, however, mean that we can now safely use the MaxClients variable within OnPluginStart().


Potato Uno 11-05-2015 18:26

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
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?

Powerlord 11-06-2015 10:24

Re: SourceMod Development Roundup (1.7.2 - 03/11/15)
 
Asherkin merged a fix into 1.8-git5779 this morning that fixes GetMapDisplayName not working properly on CSGO Windows.


All times are GMT -4. The time now is 23:44.

Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.