Jump to content

طلب فنكشنات / طلب كود ثاني


Rockyz

Recommended Posts

السلام عليكم ابي فنكشنات

مثلا عندي ايديت وكتبت فيه اي شي DSIJFDSJI

اذا كتبت الكلمة الصحيحة يعني الباس يصير اخضر

الي يعرف الفنكشنات يعطني

والسلام عليكم :)

Edited by Guest
Link to comment
guiGetText  
triggerServerEvent 
getAccount 
triggerClientEvent 
guiLabelSetColor 

انا مابي كلمة سر :/

انا قلت مثلا

يعني مثلا كتب في الايديت كلام الي هو الكلمة سر

وكانت الكلمة سر 123

اذا كتبها يصير الكلام اخضر

Link to comment
يقدر لأكن يعدل على لوحة التسجيل يوم بيسجل يحط له الباس بداتا ويسوي

اذا الي كتبه نفس المحفوظ بـ الداتا يسوي ترأيقر ..

يسوي ترايقر وبعد ؟ كيف يلون الي داخل الاديت ؟

Link to comment
جربه ؟ ماعتقد الاديت يتلون

تحقق بدون فنكشن ولا ايفينت ؟

addEventHandler ("onClientGUIChanged", getRootElement(), 
function () 
if guiGetText == (Edit,"123") then 
guiSetProperty(Edit, "NormalTextColour", "FF00FF00") 
end 
end 
) 

Edited by Guest
Link to comment
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(483, 262, 342, 213, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(42, 124, 254, 51, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(50, 39, 236, 66, "Test", false, GUIEditor.window[1])     
    end 
) 
  
   addEventHandler('onClientGUIClick',root, 
   function ( ) 
   if ( source ==  GUIEditor.button[1] ) then 
   pass = guiGetText(GUIEditor.edit[1]) 
   if (pass == "123") then  
                guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FF00EF00") 
                end 
                end 
                end ) 

Link to comment
  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(483, 262, 342, 213, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(42, 124, 254, 51, "", false, GUIEditor.window[1]) 
        GUIEditor.button[1] = guiCreateButton(50, 39, 236, 66, "Test", false, GUIEditor.window[1])     
    end 
) 
  
   addEventHandler('onClientGUIClick',root, 
   function ( ) 
   if ( source ==  GUIEditor.button[1] ) then 
   pass = guiGetText(GUIEditor.edit[1]) 
   if (pass == "123") then  
                guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FF00EF00") 
                end 
                end 
                end ) 

مابيه اذا ضغط بس مثال جوف كودي

Link to comment
  
GUIEditor = { 
    window = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(483, 262, 342, 213, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.edit[1] = guiCreateEdit(42, 124, 254, 51, "", false, GUIEditor.window[1]) 
    end 
) 
  
Timer = setTimer (   
    function (  ) 
   pass = guiGetText(GUIEditor.edit[1]) 
   if (pass == "123") then  
                guiSetProperty(GUIEditor.edit[1], "NormalTextColour", "FF00EF00") 
                end 
end,1000,0) 

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