Jump to content

تصحيح كود


Recommended Posts

السلام عليكم ورحمة الله وبركاته

انا سويت كود

اين الاخطاء ؟؟

--------client-------- 
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[2]) then 
        triggerServerEvent(source,"quit") 
        setPlayerSkin(source,0) 
    end 
end) 
  
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[1]) 
        guiSetText(Stop Work) 
        if guiGetText(source) = Stop Work then 
        guiSetText("Start Work") 
        end 
    end 
end) 
  
  
-----------server----------------- 
addEvent("quit",true 
addEventHandler("quit",root, 
function() 
    removePlayerFromTeam(source) 
end) 

Link to comment
  
--------client-------- 
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[2]) then 
        triggerServerEvent(localPlayer,"quit") 
        setPlayerSkin(localPlayer,0) 
    end 
end) 
  
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[1]) 
        guiSetText(حط اسم الزر هنا,"Stop Work") 
        if guiGetText(source) = "Stop Work" then 
        guiSetText(حط اسم الزر هنا,"Start Work") 
        end 
    end 
end) 
  
  
-----------server----------------- 
addEvent("quit",true 
addEventHandler("quit",root, 
function() 
    removePlayerFromTeam(source) 
end) 

Link to comment
السلام عليكم ورحمة الله وبركاته

انا سويت كود

اين الاخطاء ؟؟

--------client-------- 
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[2]) then 
        triggerServerEvent(source,"quit") 
        setPlayerSkin(source,0) 
    end 
end) 
  
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[1]) 
        guiSetText(Stop Work) 
        if guiGetText(source) = Stop Work then 
        guiSetText("Start Work") 
        end 
    end 
end) 
  
  
-----------server----------------- 
addEvent("quit",true 
addEventHandler("quit",root, 
function() 
    removePlayerFromTeam(source) 
end) 

--#Client 
addEventHandler("onClientGUIClick", root, 
    function() 
        if source == GUIEditor.button[2] then 
        triggerServerEvent("quit", localPlayer) 
        setPlayerSkin(localPlayer, 0) 
       elseif source == GUIEditor.button[1] then 
       guiSetText(GUIEditor.button[1], "Stop Work") 
       if guiGetText(GUIEditor.button[1]) == "Stop Work" then 
      guiSetText(GUIEditor.button[1], "Start Work") 
        end 
    end 
end)  
  
Link to comment
السلام عليكم ورحمة الله وبركاته

انا سويت كود

اين الاخطاء ؟؟

--------client-------- 
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[2]) then 
        triggerServerEvent(source,"quit") 
        setPlayerSkin(source,0) 
    end 
end) 
  
addEventHandler("onClientGUIClick",root, 
    function() 
        if (source = GUIEditor.button[1]) 
        guiSetText(Stop Work) 
        if guiGetText(source) = Stop Work then 
        guiSetText("Start Work") 
        end 
    end 
end) 
  
  
-----------server----------------- 
addEvent("quit",true 
addEventHandler("quit",root, 
function() 
    removePlayerFromTeam(source) 
end) 

--#Client 
addEventHandler("onClientGUIClick", root, 
    function() 
        if source == GUIEditor.button[2] then 
        triggerServerEvent("quit", localPlayer) 
        setPlayerSkin(localPlayer, 0) 
       elseif source == GUIEditor.button[1] then 
       guiSetText(GUIEditor.button[1], "Stop Work") 
       if guiGetText(GUIEditor.button[1]) == "Stop Work" then 
      guiSetText(GUIEditor.button[1], "Start Work") 
        end 
    end 
end)  
  

شكراً لك :)

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