Rockyz Posted August 20, 2015 Share Posted August 20, 2015 (edited) السلام عليكم ابي فنكشنات مثلا عندي ايديت وكتبت فيه اي شي DSIJFDSJI اذا كتبت الكلمة الصحيحة يعني الباس يصير اخضر الي يعرف الفنكشنات يعطني والسلام عليكم Edited August 20, 2015 by Guest Link to comment
Naif Posted August 20, 2015 Share Posted August 20, 2015 guiGetText triggerServerEvent getAccount triggerClientEvent guiLabelSetColor Link to comment
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 ايش هو الي يصير أخضر ؟ guiGetText Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 guiGetText triggerServerEvent getAccount triggerClientEvent guiLabelSetColor انا ابي للاعب فقط يعني مثلا كتب كلمة سر اذا صح يصير الايديت اخضر Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 ايش هو الي يصير أخضر ؟ guiGetText الكلام الي في الايديت Link to comment
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 آمم تلون الي داخل الاديت ؟ ماعتقد تقدر Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 guiGetText triggerServerEvent getAccount triggerClientEvent guiLabelSetColor انا مابي كلمة سر انا قلت مثلا يعني مثلا كتب في الايديت كلام الي هو الكلمة سر وكانت الكلمة سر 123 اذا كتبها يصير الكلام اخضر Link to comment
N3xT Posted August 20, 2015 Share Posted August 20, 2015 سوي تحقق اذا كانت كلمة السر 123 يصير اللون أخضر guiGetText guiLabelSetColor Link to comment
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 سوي تحقق اذا كانت كلمة السر 123 يصير اللون أخضر guiGetText guiLabelSetColor هذا تلوين اللبل وهو يبي يلون الاديت . Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 ما تقدر تلون الاديت ^ / الكلام الي داخل الايديت ^ Link to comment
Naif Posted August 20, 2015 Share Posted August 20, 2015 يقدر لأكن يعدل على لوحة التسجيل يوم بيسجل يحط له الباس بداتا ويسوي اذا الي كتبه نفس المحفوظ بـ الداتا يسوي ترأيقر .. Link to comment
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 يقدر لأكن يعدل على لوحة التسجيل يوم بيسجل يحط له الباس بداتا ويسوي اذا الي كتبه نفس المحفوظ بـ الداتا يسوي ترأيقر .. يسوي ترايقر وبعد ؟ كيف يلون الي داخل الاديت ؟ Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 if guiGetText (Edit,"123") then guiSetProperty(Edit, "NormalTextColour", "FF00FF00") end ادري هريسة بس اجرب Link to comment
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 جربه ؟ ماعتقد الاديت يتلون تحقق بدون فنكشن ولا ايفينت ؟ Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 جربه ؟ ماعتقد الاديت يتلونتحقق بدون فنكشن ولا ايفينت ؟ او نسيت دقيقة Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 (edited) جربه ؟ ماعتقد الاديت يتلونتحقق بدون فنكشن ولا ايفينت ؟ addEventHandler ("onClientGUIChanged", getRootElement(), function () if guiGetText == (Edit,"123") then guiSetProperty(Edit, "NormalTextColour", "FF00FF00") end end ) Edited August 20, 2015 by Guest Link to comment
Naif Posted August 20, 2015 Share Posted August 20, 2015 guiSetProperty هو مايبي يلون الايديت يبي يلون الكلام الي داخل الايديت .. Link to comment
Froze Posted August 20, 2015 Share Posted August 20, 2015 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
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 function ( ) if guiGetText (Edit) == "123" then guiSetProperty(Edit, "NormalTextColour", "FF00FF00") end end حطه بالحدث الي تبيه ماعتقد بيتلون الاديت = ( Link to comment
Rockyz Posted August 20, 2015 Author Share Posted August 20, 2015 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
Froze Posted August 20, 2015 Share Posted August 20, 2015 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
iMr.SFA7 Posted August 20, 2015 Share Posted August 20, 2015 (edited) addEventHandler ("onClientGUIChanged", root, function () if source == Edit then if guiGetText(Edit) == "123" then guiSetProperty(Edit, "NormalTextColour", "FF00FF00") end end end ) Edited August 20, 2015 by Guest Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now