18.04.2014, 09:14
(
Последний раз редактировалось [ESC]Walter_Wolf; 18.04.2014 в 10:44.
)
I am trying to sort an enum by two columns using the 'SortArrayUsingComparator()' function, but something is not right.
I put the test code to pastebin here:
http://pastebin.com/iEjKvGx4
The OnScriptInit stops executing when it reaches the sort function. Did I do something wrong with the comparator? or what?
thanks
EDIT: looks like I made an infinite loop somehow. I get this message on "function crash"
I put the test code to pastebin here:
http://pastebin.com/iEjKvGx4
The OnScriptInit stops executing when it reaches the sort function. Did I do something wrong with the comparator? or what?
thanks
EDIT: looks like I made an infinite loop somehow. I get this message on "function crash"
Код:
Script[gamemodes/comparator2.amx]: Run time error 3: "Stack/heap collision (insufficient stack size)