Client script ?

Started by KrOoB_, Jun 29, 2018, 11:54 AM

Previous topic - Next topic

KrOoB_

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


kennedyarz

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);

KrOoB_

THANKS BRO For your help :)