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

smartdm.inc "Not enough space on the stack"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 05-09-2020 , 09:24   smartdm.inc "Not enough space on the stack"
Reply With Quote #1

Smart DM is partially responsible to an error of "Not enough space on the stack"

However the thing crashes my server so I use another version of the include that won't crash my server, attached below.


Code used with the include:

Code:
public void OnMapStart()
{
	if(Array_KnifeStats.Length > 0)
	{
		for(int i=0;i < Array_KnifeStats.Length;i++)
		{
			enKnifeStats ArrayKnifeInfo;
			
			Array_KnifeStats.GetArray(i, ArrayKnifeInfo);
			
			if(ArrayKnifeInfo.KnifeModel[0] != EOS)
			{
				int modelIndex = PrecacheModel(ArrayKnifeInfo.KnifeModel, true);
				
				LogError("a%s", ArrayKnifeInfo.KnifeModel);
				Downloader_AddFileToDownloadsTable(ArrayKnifeInfo.KnifeModel);
				
				SetTrieValue(Trie_ModelIndex, ArrayKnifeInfo.KnifeModel, modelIndex);
			}
			else
				SetTrieValue(Trie_ModelIndex, ArrayKnifeInfo.KnifeModel, -1);
		}
	}
}
Error Log:

Code:
L 05/09/2020 - 16:17:05: Info (map "jb_lego_jail_v8") (file "D:\TCAFiles\Users\nickelony\48\csgo\addons\sourcemod\logs\errors_20200509.log")
L 05/09/2020 - 16:17:05: [RolePlayKnives.smx] amodels/weapons/eminem/bananabit/v_bananabit.mdl
L 05/09/2020 - 16:17:05: [SM] Exception reported: Not enough space on the stack
L 05/09/2020 - 16:17:05: [SM] Blaming: RolePlayKnives.smx
L 05/09/2020 - 16:17:05: [SM] Call stack trace:
L 05/09/2020 - 16:17:05: [SM]   [1] Line 320, C:\Users\Eyal282\Desktop\DesktopReal\Compiler\RolePlayKnives.sp::Downloader_AddFileToDownloadsTable
L 05/09/2020 - 16:17:05: [SM]   [2] Line 195, C:\Users\Eyal282\Desktop\DesktopReal\Compiler\include\smartdm.inc::Downloader_AddFileToDownloadsTable
L 05/09/2020 - 16:17:05: [SM]   [3] Line 84, C:\Users\Eyal282\Desktop\DesktopReal\Compiler\RolePlayKnives.sp::OnMapStart
L 05/09/2020 - 16:17:05: [mapchooser.smx] Unable to create a valid map list.
I gave extra piece of error from top and bottom so you can know I don't miss any error data. Any ideas on why it happens?
Attached Files
File Type: inc smartdm.inc (7.9 KB, 77 views)
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 05-09-2020 at 10:09.
eyal282 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 15:45.


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