Jacobob14 Posted May 20, 2014 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
xeon17 Posted May 20, 2014 Posted May 20, 2014 What not work ? anything in debug ? ( /debugscript 3 )
nikitafloy Posted May 20, 2014 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?
xeon17 Posted May 20, 2014 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
Jacobob14 Posted May 20, 2014 Author Posted May 20, 2014 still gives me error http://prntscr.com/3kz24z
nikitafloy Posted May 20, 2014 Posted May 20, 2014 still gives me error http://prntscr.com/3kz24z From command is executed?
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