Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: KrOoB_ on Jun 29, 2018, 11:54 AM

Title: Client script ?
Post by: KrOoB_ on Jun 29, 2018, 11:54 AM
When I put these two scripts, one of them does not work. It's usually working on top

This
https://forum.vc-mp.org/?topic=4353.0
&
https://forum.vc-mp.org/?topic=3552.0
This

Title: Re: Client script ?
Post by: kennedyarz on Jun 29, 2018, 03:34 PM
Quote from: KrooB on Jun 29, 2018, 11:54 AMWhen I put these two scripts, one of them does not work. It's usually working on top

This
https://forum.vc-mp.org/?topic=4353.0
&
https://forum.vc-mp.org/?topic=3552.0
This



Add this to the end of your client side and see what error says

function errorHandling(err)
    {
    /* credits: ysc3839 */
        local stackInfos = getstackinfos(2);

        if (stackInfos)
        {
            local locals = "";
            foreach( index, value in stackInfos.locals )
            {
                if( index != "this" )
                locals = locals + "[" + index + "] " + value + "\n";
            }

            local callStacks = "";
            local level = 2;
            do
        {
                callStacks += "*FUNCTION [" + stackInfos.func + "()] " + stackInfos.src + " line [" + stackInfos.line + "]\n";
                level++;
            }
        while ((stackInfos = getstackinfos(level)));

            local errorMsg = "AN ERROR HAS OCCURRED [" + err + "]\n";
            errorMsg += "\nCALLSTACK\n";
            errorMsg += callStacks;
            errorMsg += "\nLOCALS\n";
            errorMsg += locals;
            Console.Print(errorMsg)
        }
    }

    seterrorhandler(errorHandling);
Title: Re: Client script ?
Post by: KrOoB_ on Jun 29, 2018, 04:09 PM
THANKS BRO For your help :)