Jump to content

[HELP] ScoreBoard


1LoL1

Recommended Posts

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

Link to comment

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.

Link to comment

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.

Link to comment
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.

Link to comment
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.

Link to comment

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...