Sex* Posted February 9, 2013 Posted February 9, 2013 I get this error: [2013-02-09 17:54:24] ERROR: race\race_client.lua:626: attempt to call global 'setRankDisplay' (a nil value) The 626 Event: addEventHandler('onClientElementDataChange', g_Me, function(dataName) if dataName == 'race rank' and not Spectate.active then setRankDisplay( getElementData(g_Me, 'race rank') ) end end, false )
3NAD Posted February 9, 2013 Posted February 9, 2013 I don't know if this ' setRankDisplay ' is available Function !!
iPrestege Posted February 9, 2013 Posted February 9, 2013 I don't know if this ' setRankDisplay ' is available Function !! On "Race" it,s available .
3NAD Posted February 9, 2013 Posted February 9, 2013 So, I guess you removed the Function ! Add this Function at the Same file function setRankDisplay( rank ) if not tonumber(rank) then g_dxGUI.ranknum:text('') g_dxGUI.ranksuffix:text('') return end g_dxGUI.ranknum:text(tostring(rank)) g_dxGUI.ranksuffix:text( (rank < 10 or rank > 20) and ({ [1] = 'st', [2] = 'nd', [3] = 'rd' })[rank % 10] or 'th' ) end
Sex* Posted February 9, 2013 Author Posted February 9, 2013 Because i didnt want that function and i dont want it to come back.
iPrestege Posted February 9, 2013 Posted February 9, 2013 Because i didnt want that function and i dont want it to come back. Will, How You Will Use "setRankDisplay" ?
Sex* Posted February 9, 2013 Author Posted February 9, 2013 Because i didnt want that function and i dont want it to come back. Will, How You Will Use "setRankDisplay" ? I dont...Some thing from race resource is calling it...
Anderl Posted February 9, 2013 Posted February 9, 2013 Don't you just get the error? You're trying to call a function that doesn't exist, what you need to do is obvious.
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