Plate Posted June 30, 2012 Share Posted June 30, 2012 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 ) Link to comment
Castillo Posted June 30, 2012 Share Posted June 30, 2012 Donde esta "accountName" definido? Link to comment
Plate Posted June 30, 2012 Author Share Posted June 30, 2012 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) Link to comment
Recommended Posts