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?
I am available to make plugins for pay.
Discord: Eyal282#1334