Jump to content

setElementHealth


Recommended Posts

السلام عليكم

رمضان مبارك وينعاد علينا وعليكم بالخير والبركه لا فاقدين ولا مفقودين

بغيت اعرف وين الخطأ لانه ما يعطي دم

addEventHandler("onClientGUIClick", root, 
 function () 
 if ( source == GUIEditor.label[18] ) then 
 if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then 
 triggerServerEvent ("hp20",localPlayer) 
 end 
 end 
 end) 

addEvent("hp20",true) 
addEventHandler("hp20",root, 
function () 
getmoney2 = getPlayerMoney ( source ) 
 if (getmoney2 >=  150) then 
 takePlayerMoney ( source, 150 ) 
setElementHealth (source, getElementHealth (source) + 20) 
end 
end 
) 
  

Link to comment

  
addEventHandler("onClientGUIClick", root, 
function() 
    if ( source == GUIEditor.label[18] ) then 
        if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then 
            triggerServerEvent("hp20",localPlayer) 
             outputChatBox("Clicked@@@@@@@@@",0,255,0) 
        end 
    end 
end) 
  

addEvent("hp20",true) 
addEventHandler("hp20",root, 
function () 
local getmoney2 = getPlayerMoney ( source ) 
    if (getmoney2 >=  150) then 
        takePlayerMoney ( source, 150 ) 
        setElementHealth (source, getElementHealth (source) + 20) 
    end 
end)  

رمضان مبارك عليك انت كمان ^.^

بس الليبل م ينفع ينضغط اظن هيك

جرب اضغط لو جالك بالشات Clicked@@@@@@@@@

يبقي ينفع ينضغط عليه ولو ما جالك م ينفع ينضغط علي ليبل

وابقي هات الدي بق

وبالتوفيق لك

Link to comment
يضغط على الليبل عادي لكن يقولي خطأ بذا السطر

if ( guiRadioButtonGetSelected(GUIEditor.RadioButton[1]) == true ) then

؟GUIEditor.RadioButton[1] متأكد أنه يوجد المنت بالمتغير هذا

ياليت تطرح سطر انشائه

Link to comment

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