Jump to content

مشكلة في ظهور النافذه


Recommended Posts

وش اللي تبية تبي لآاختار الزر مرهـَ يلغي التشيك بـوكـس ! ؟

لا القصد ما تقدر تحدد الا واحد يعني لو حددث الثاني يروح التحديد عن الاول ولو حددت الاول يروح التحديد عن الثاني

guiCreateComboBox حط

guiCreateCheckbox بدل

جربت ولا ضبط

Link to comment
  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

addEventHandler ( "onClientGUIClick", root, 
 function () 
 if ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) 
 triggerServerEvent ( "setPedStats2", localPlayer ) 
 setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) 
 guiSetVisible ( GUIEditor_Label[3], true ) 
guiSetEnabled ( GUIEditor_Checkbox[2], false ) 
guiSetEnabled ( GUIEditor_Checkbox[1], true ) 
 elseif( source == GUIEditor_Button[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 elseif ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) 
guiSetEnabled ( GUIEditor_Checkbox[1], false ) 
guiSetEnabled ( GUIEditor_Checkbox[2], true ) 
  setGameSpeed(tonumber(1.5)) 
  setTimer(setGameSpeed,60000,1,1) 
 end 
    end 
       end 
          end ) 

Link to comment
addEventHandler ( "onClientGUIClick", root, 
 function () 
 if ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) 
 triggerServerEvent ( "setPedStats2", localPlayer ) 
 setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) 
 guiSetVisible ( GUIEditor_Label[3], true ) 
guiSetEnabled ( GUIEditor_Checkbox[2], false ) 
guiSetEnabled ( GUIEditor_Checkbox[1], true ) 
 elseif( source == GUIEditor_Button[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 elseif ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) 
guiSetEnabled ( GUIEditor_Checkbox[1], false ) 
guiSetEnabled ( GUIEditor_Checkbox[2], true ) 
  setGameSpeed(tonumber(1.5)) 
  setTimer(setGameSpeed,60000,1,1) 
 end 
    end 
       end 
          end ) 

not work ;(

Link to comment
addEventHandler ( "onClientGUIClick", root, 
 function () 
 if ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) 
 triggerServerEvent ( "setPedStats2", localPlayer ) 
 setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) 
 guiSetVisible ( GUIEditor_Label[3], true ) 
guiSetEnabled ( GUIEditor_Checkbox[2], false ) 
guiSetEnabled ( GUIEditor_Checkbox[1], true ) 
 elseif( source == GUIEditor_Button[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 elseif ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) 
guiSetEnabled ( GUIEditor_Checkbox[1], false ) 
guiSetEnabled ( GUIEditor_Checkbox[2], true ) 
  setGameSpeed(tonumber(1.5)) 
  setTimer(setGameSpeed,60000,1,1) 
 end 
    end 
       end 
          end ) 

not work ;(

انا خليتة لك لآضغط الزر الثاني يفعل التشيك بوكس الاول ويلغي الثاني واذا ضغط الزر الاول يلغي التشيك بوكس الاول ويفعل التشيك بوكس الثاني هذا اللي تبية صحيح ؟

Link to comment
addEventHandler ( "onClientGUIClick", root, 
 function () 
 if ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) 
 triggerServerEvent ( "setPedStats2", localPlayer ) 
 setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) 
 guiSetVisible ( GUIEditor_Label[3], true ) 
guiSetEnabled ( GUIEditor_Checkbox[2], false ) 
guiSetEnabled ( GUIEditor_Checkbox[1], true ) 
 elseif( source == GUIEditor_Button[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 elseif ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) 
guiSetEnabled ( GUIEditor_Checkbox[1], false ) 
guiSetEnabled ( GUIEditor_Checkbox[2], true ) 
  setGameSpeed(tonumber(1.5)) 
  setTimer(setGameSpeed,60000,1,1) 
 end 
    end 
       end 
          end ) 

not work ;(

انا خليتة لك لآضغط الزر الثاني يفعل التشيك بوكس الاول ويلغي الثاني واذا ضغط الزر الاول يلغي التشيك بوكس الاول ويفعل التشيك بوكس الثاني هذا اللي تبية صحيح ؟

الموضوع مافيه الغاء شي الوضوع يروح التحديد = ما تقدر تحدد اثنين نفس الوقت

Link to comment
قول وش مشكلتكـ واطرح كودك .. /
addEventHandler ( "onClientGUIClick", root, 
 function () 
 if ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[2]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[2], true ) 
 triggerServerEvent ( "setPedStats2", localPlayer ) 
 setTimer ( triggerServerEvent, 5000, 1, "setPedStats",localPlayer ) 
 guiSetVisible ( GUIEditor_Label[3], true ) 
guiSetEnabled ( GUIEditor_Checkbox[2], false ) 
guiSetEnabled ( GUIEditor_Checkbox[1], true ) 
 elseif( source == GUIEditor_Button[2] ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 elseif ( source == GUIEditor_Button[1] ) then 
 if(guiCheckBoxGetSelected(GUIEditor_Checkbox[1]))then 
 guiCheckBoxSetSelected (GUIEditor_Checkbox[1], true ) 
guiSetEnabled ( GUIEditor_Checkbox[1], false ) 
guiSetEnabled ( GUIEditor_Checkbox[2], true ) 
  setGameSpeed(tonumber(1.5)) 
  setTimer(setGameSpeed,60000,1,1) 
 end 
    end 
       end 
          end ) 

المشكله ان الاعب يقدر يحدد تشيك بوكس انا ابغى اذا حدد واحد يروح التحديد عن الاول

يعني مايقدر يحدد الاثنين في الوقت نفسه

Link to comment
-- جرب 
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor_Checkbox[1] then 
            if guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) then 
                guiCheckBoxSetSelected ( GUIEditor_Checkbox[2], false ) 
            end 
        elseif source == GUIEditor_Checkbox[2] then 
            if guiCheckBoxGetSelected ( GUIEditor_Checkbox[2] ) then 
                guiCheckBoxSetSelected ( GUIEditor_Checkbox[1], false ) 
            end 
        end 
    end 
) 

Link to comment
-- جرب 
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == GUIEditor_Checkbox[1] then 
            if guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) then 
                guiCheckBoxSetSelected ( GUIEditor_Checkbox[2], false ) 
            end 
        elseif source == GUIEditor_Checkbox[2] then 
            if guiCheckBoxGetSelected ( GUIEditor_Checkbox[2] ) then 
                guiCheckBoxSetSelected ( GUIEditor_Checkbox[1], false ) 
            end 
        end 
    end 
) 

مشكؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤؤر واللله انك شننننننب يسلممؤؤ

Link to comment
ي شباب ككيف اسوي شرط اذا لمس الماركر 3 مرات وكذا

يعني الوظيفة ماتصير الا اذا لمس الماركر 3 لاعبين ؟

يعني اذا كانوا ثلاثة لاعبين داخل الماركر تتنفذ

او تعني اذا ثلاثة لاعبين لمسوا الماركر وخرجوا تتنفذ الوظيفة ؟

Link to comment
ي شباب ككيف اسوي شرط اذا لمس الماركر 3 مرات وكذا

يعني الوظيفة ماتصير الا اذا لمس الماركر 3 لاعبين ؟

يعني اذا كانوا ثلاثة لاعبين داخل الماركر تتنفذ

او تعني اذا ثلاثة لاعبين لمسوا الماركر وخرجوا تتنفذ الوظيفة ؟

اقصد اذا واحد جا ولمس الماركر وجا ثاني وثالث لمسو الماركر تتنفذ

Link to comment
local marker = createMarker(x, y, z "cylinder", 3, 255, 255, 0) 
local Hit_Cont = 0 
  
addEventHandler("onMarkerHit", marker, 
function(hitElement) 
    if (getElementType(hitElement) == "player") then 
        if (Hit_Cont == 3) then 
            -- نفذ الكود هنا 
        elseif (Hit_Cont < 3) then 
            Hit_Cont = (Hit_Cont + 1) 
        end 
    end 
end) 

Link to comment
local marker = createMarker(x, y, z "cylinder", 3, 255, 255, 0) 
local Hit_Cont = 0 
  
addEventHandler("onMarkerHit", marker, 
function(hitElement) 
    if (getElementType(hitElement) == "player") then 
        if (Hit_Cont == 3) then 
            -- نفذ الكود هنا 
        elseif (Hit_Cont < 3) then 
            Hit_Cont = (Hit_Cont + 1) 
        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...