View Single Post
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 08-09-2013 , 15:36   Re: New JIT in SourceMod 1.6
Reply With Quote #3

Well I downloaded 1.6.0-hg3980.zip for Windows and immediately got an error in a plugin which is using this function:
PHP Code:
GetRealClientCount(bool:inGameOnly)
{
    new 
clients[MaxClients], numClients;

    for (new 
1<= MaxClientsi++)
    {
        if (((
inGameOnly) ? IsClientInGame(i) : IsClientConnected(i)) && !IsFakeClient(i))
        {
            
clients[numClients++] = i;
        }
    }

    return 
numClients;

An error:
Code:
[SM] Plugin encountered error 17: Stack memory leaked by native
[SM] Displaying call stack trace for plugin "myplugin"
Reported on line "new clients[MaxClients], numClients;"
Previously on older versions I havent had this error. And I foudn a solution: when I change it to clients[MAXPLAYERS + 1] the error is not appearing. Should I file a bug instead?
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline