Jump to content

Problema con este script


Plate

Recommended Posts

Posted

que esta mal en esto ?

addEvent("enviarVariable",true) 
addEventHandler("enviarVariable",root,function (playerName) 
        local elPlayer = getPlayerFromName(playerName) 
        local usuario = getAccountName ( getPlayerAccount ( elPlayer ) ) 
        if isObjectInACLGroup ( "user.".. usuario, aclGetGroup ( "LiderFTFP" ) )  then 
            if ( accountName ) then 
                local pname = getPlayerName ( elPlayer ) 
                aclGroupAddObject ( aclGetGroup ( "FTFP" ), "user.".. accountName ) 
                outputChatBox ( tostring ( pname ) .." agrego a  '".. accountName .."' a S.T.A.R.S", getRootElement(), 0, 255, 255, true ) 
            end 
        end 
    end 
) 

Posted

jaja nose es que este script me lo dio ElMota cuando yo pregunte eso del gui pero me die "badArgument" getPlayerAccount

"bad argument" getAccountName

"bad argument" local usuario (a boolean valvue)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...