Jacobob14 Posted May 20, 2014 Share Posted May 20, 2014 (edited) which is the error the script does not work: ( [luafunction ranks ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local accountName = getAccountName ( account ) if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "|LTN" ) ) ) then --Grupo Admin-- local clan = tonumber ( clan ) setElementData ( thePlayer, "clan",":ranks/rangos/"..getElementData(thePlayer(),"level")..".png" ) triggerClientEvent("Rango",theplayer, clan) end end [/lua] Edited May 20, 2014 by Guest Link to comment
xeon17 Posted May 20, 2014 Share Posted May 20, 2014 What not work ? anything in debug ? ( /debugscript 3 ) Link to comment
Jacobob14 Posted May 20, 2014 Author Share Posted May 20, 2014 http://prntscr.com/3kyx1t Link to comment
nikitafloy Posted May 20, 2014 Share Posted May 20, 2014 which is the error the script does not work: ([luafunction ranks ( thePlayer ) local account = getPlayerAccount ( thePlayer ) local accountName = getAccountName ( account ) if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "|LTN" ) ) ) then --Grupo Admin-- local clan = tonumber ( clan ) setElementData ( thePlayer, "clan",":ranks/rangos/"..getElementData(thePlayer(),"level")..".png" ) triggerClientEvent("Rango",theplayer, clan) end end [/lua] On Server Side? Link to comment
xeon17 Posted May 20, 2014 Share Posted May 20, 2014 try this , i'm not sure what are you trying to do. function ranks ( thePlayer ) local account = getPlayerAccount ( thePlayer ) if ( account ) then local accountName = getAccountName ( account ) if not ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "|LTN" ) ) ) then --Grupo Admin-- local clan = tonumber ( clan ) setElementData ( thePlayer, "clan",":ranks/rangos/"..getElementData(thePlayer(),"level")..".png" ) triggerClientEvent("Rango",theplayer, clan) end end Link to comment
Jacobob14 Posted May 20, 2014 Author Share Posted May 20, 2014 still gives me error http://prntscr.com/3kz24z Link to comment
nikitafloy Posted May 20, 2014 Share Posted May 20, 2014 still gives me error http://prntscr.com/3kz24z From command is executed? 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