How to use squirrel magic function?

Started by 2b2ttianxiu, Jan 11, 2025, 01:37 PM

Previous topic - Next topic

2b2ttianxiu

class CLabel {
    constructor() {

    }
    function _set(idx, val) {
        Console.Print(idx + " " + val)
        return null;
    }
    function _get(idx) {
        Console.Print(idx)
        return null;
    }
}

2b2ttianxiu

get error: AN ERROR HAS OCCURRED [stack overflow, cannot resize stack while in a metamethod]

umar4911

The error is not related to the code. There is something else. The stack overflow mentions that there is some kind of timer or a script that is creating soemthing indefinitely.
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter


habi2


2b2ttianxiu