Jump to content

Ayuda tema sin resolver


Plate

Recommended Posts

Posted

Hola alguien me podria decir por que esto no anda

    function useItemHealth() 
                local row, col = guiGridListGetSelectedItem ( itemGrid ) 
                if ( row and col and row ~= -1 and col ~= -1 ) then 
                    local itemH = guiGridListGetItemText ( itemGrid, row, 1 ) 
    if (itemH == "Vida") then 
    setElementHealth(localPlayer, 100) 
    end 
    end 
    end 
    addEventHandler("onClientGUIClcik", Usar, useItemHealth, false) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Tenes mal el evento: "onClientGUIClcik".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Sigue sin funcionar

function useItemHealth() 
                local row, col = guiGridListGetSelectedItem ( itemGrid ) 
                if ( row and col and row ~= -1 and col ~= -1 ) then 
                    local itemH = guiGridListGetItemText ( itemGrid, row, 1 ) 
    if (itemH == "Vida") then 
    setElementHealth(localPlayer, 100) 
    end 
    end 
    end 
    addEventHandler("onClientGUIClick", UsarI, useItemHealth, false) 

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

probe usando un trigger y en el trigger use un outputChatBox pero el chatBox no funciona supongo que deve ser en el "itemH"

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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