Jump to content

[HELP] Erro no Painel_Vip Porem não consigo arrumar


Recommended Posts

WARNING: [TESTE]/VIP_PAINEL/AirNew_s.lua236:Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] 

WARNING: [TESTE]/VIP_PAINEL/AirNew_s.lua241:Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] 

WARNING: [TESTE]/VIP_PAINEL/AirNew_s.lua246:Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] 

WARNING: [TESTE]/VIP_PAINEL/AirNew_s.lua251:Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] 

231 function Verificar_VIP_AirNewSCR ( )
232  for i, player in ipairs ( getElementsByType ( "player" ) ) do
233 local acc = getPlayerAccount ( player )
234  if acc and not isGuestAccount ( acc ) then
235 local accName = getAccountName (acc)
236 if isObjectInACLGroup ("user."..accName, aclGetGroup (Grupo_01) ) then
237 setElementData ( player, "VIP_01", "Sim" )
238  else
239 setElementData ( player, "VIP_01", "Não" )
240  end
241  if isObjectInACLGroup ("user."..accName, aclGetGroup (Grupo_02) ) then
242 setElementData ( player, "VIP_02", "Sim" )
243 else
244 setElementData ( player, "VIP_02", "Não" )
245 end
246 if isObjectInACLGroup ("user."..accName, aclGetGroup (Grupo_03) ) then
247 setElementData ( player, "VIP_03", "Sim" )
248 else
249 setElementData ( player, "VIP_03", "Não" )
250 end
251 if isObjectInACLGroup ("user."..accName, aclGetGroup (Grupo_04) ) then
252  setElementData ( player, "VIP_04", "Sim" )
253 else
254 setElementData ( player, "VIP_04", "Não" )
255 end
256 end
257 end
258 end
259 setTimer ( Verificar_VIP_AirNewSCR, 1500, 0 )

 

Link to post

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