1LoL1 Posted March 13, 2015 Share Posted March 13, 2015 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: Link to comment
xXMADEXx Posted March 13, 2015 Share Posted March 13, 2015 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. Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 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 Link to comment
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 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
xXMADEXx Posted March 13, 2015 Share Posted March 13, 2015 I deleted.. but errors its again That error isn't coming from this script. Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 I deleted.. but errors its again That error isn't coming from this script. So what I do, or how do I fix it? Link to comment
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 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
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 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
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 Do you have an uncompiled version of server/mods/deathmatch/resources/[gameplay]/scoreboard/dxscreboard_client.lua? Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 Do you have an uncompiled version of server/mods/deathmatch/resources/[gameplay]/scoreboard/dxscreboard_client.lua? Yes and compiled too. Link to comment
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 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. Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 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
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 but as I said, it's not 'exactly' the same. This new one should have a line number included, prefix ERROR: dxscoreboard_client.lua: Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 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. Link to comment
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 If I had a more time, I could check the code but unfortunately. I'm gonna rely on someone else to help from here. Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 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? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now