Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: 2b2ttianxiu on Jan 11, 2025, 01:37 PM

Title: How to use squirrel magic function?
Post by: 2b2ttianxiu on Jan 11, 2025, 01:37 PM
class CLabel {
    constructor() {

    }
    function _set(idx, val) {
        Console.Print(idx + " " + val)
        return null;
    }
    function _get(idx) {
        Console.Print(idx)
        return null;
    }
}
Title: Re: How to use squirrel magic function?
Post by: 2b2ttianxiu on Jan 11, 2025, 01:38 PM
get error: AN ERROR HAS OCCURRED [stack overflow, cannot resize stack while in a metamethod]
Title: Re: How to use squirrel magic function?
Post by: umar4911 on Jan 11, 2025, 05:38 PM
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.
Title: Re: How to use squirrel magic function?
Post by: 2b2ttianxiu on Jan 12, 2025, 05:31 AM
solved
Title: Re: How to use squirrel magic function?
Post by: habi2 on Jan 12, 2025, 08:31 AM
::Console.Print
Title: Re: How to use squirrel magic function?
Post by: 2b2ttianxiu on Jan 16, 2025, 11:10 AM
Quote from: habi2 on Jan 12, 2025, 08:31 AM::Console.Print
i solved it, thanks.