Jump to content

[HELP] ScoreBoard


1LoL1

Recommended Posts

Posted

Why this not work? :(

Script:

call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "VIP", root, 25 ) 
  
function funcion ( ) 
    local Deadusergroup = getAccountName(getPlayerAccount(source)) 
        if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("VIP")) then 
            setElementData ( source, "VIP", "Yes" ) 
        else 
            setElementData ( source, "VIP", "No" ) 
        end 
end 
addEventHandler ( "onPlayerLogin", getRootElement(), funcion ) 
addEventHandler ( "onResourceStart", getRootElement(), funcion ) 
addEventHandler ( "onResourceRestart", getRootElement(), funcion ) 
addEventHandler ( "onPlayerChangeNick", getRootElement(), funcion ) 

Error: errorc56455475.png

Posted

That error isn't coming from this script. However, you need to remove the onResourceStart and onResourceResart events because that function isn't properly scripted for it.

Posted
That error isn't coming from this script. However, you need to remove the onResourceStart and onResourceResart events because that function isn't properly scripted for it.

I deleted.. but errors its again :(

Posted

We can't help a lot since you're either running a custom scoreboard, or there's an error in the code that results in a fault of scoreboard. From what I see on the debug message, dxscoreboard_client.luac wants to perform an arithmetic (mathematical calculation) on 'width', which, for some reason, contains a userdata value.

Is that scoreboard unchanged? If so, please either use an uncompiled version to test that resource, so that debugscript messages give the error source line.

Posted

You should let us get more information.

Are you using the default (without any changes at all) scoreboard?

If so, please take a screenshot of the error whilst using an uncompiled version (if possible) so we can find out which line is causing the error.

Posted
You should let us get more information.

Are you using the default (without any changes at all) scoreboard?

If so, please take a screenshot of the error whilst using an uncompiled version (if possible) so we can find out which line is causing the error.

I using default scoreboard.

Posted
Do you have an uncompiled version of server/mods/deathmatch/resources/[gameplay]/scoreboard/dxscreboard_client.lua?

Yes and compiled too.

Posted

Change the meta to use the uncompiled (just for now, you can change it back later), restart scoreboard, restart your script, look for that error again - this time it will include the line at which the error occurred.

Posted
Change the meta to use the uncompiled (just for now, you can change it back later), restart scoreboard, restart your script, look for that error again - this time it will include the line at which the error occurred.

Error again.. this error in my image.

Posted
but as I said, it's not 'exactly' the same. This new one should have a line number included, prefix ERROR: dxscoreboard_client.lua:

oh sorry.. Line: 986.

Posted
If I had a more time, I could check the code but unfortunately. I'm gonna rely on someone else to help from here.

ok someone help me please? :(

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...