Jump to content

استفسار# مشكلة ب مود


Recommended Posts

السلام عليكم المهم شبااب

عندي مشكلة متلا في

guiSetVisible

هل لا يوجد

ButtonSetVisible (checkbox1,false)

انا ابي اسوي نفس طريق مع بوتون

#

لوحة

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
FontLabel = guiCreateFont( "Font.ttf", 13 ) 
  
FontButton = guiCreateFont( "Font.ttf", 13 ) 
  
guiSetFont(show, FontWnd) 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
        wnd = guiCreateWindow(119, 119, 623, 390, " by Dr.Marco#لوحة الوزنيات وتشغيل هردز", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(wnd, 0.94) 
        guiSetProperty(wnd, "CaptionColour", "FFC6D200") 
         
  
        ok = guiCreateButton(393, 176, 215, 40,"# - Apply | تطبيق - #", false, wnd) 
        guiSetFont(ok, "default-bold-small") 
        guiSetProperty(ok, "NormalTextColour", "FF00FBE1") 
  
        grid = guiCreateGridList(9, 27, 305, 346, false, wnd) 
        guiSetFont(grid, FontWnd) 
        guiGridListAddColumn(grid, "#", 0.2) 
        guiGridListAddColumn(grid, "Handling", 0.7) 
        guiSetAlpha(grid, 0.95)  
         
        checkbox1 = guiCreateButton(509, 235, 211, 41, "تشغيل الهدرز / Start Hadrz", false, Window) 
        guiSetProperty(checkbox1, "NormalTextColour", "FFE9FE00") 
        checkbox2 = guiCreateButton(515, 354, 215, 38, "إيقاف الهدرز / Stop Hadrz", false, Window) 
        guiSetProperty(checkbox2, "NormalTextColour", "FFE9FE00") 
        addEventHandler("onClientGUIClick", root, 
    function() 
            if(source == checkbox1)then 
            guiCheckBoxSetSelected ( checkbox2, false ) 
            guiSetEnabled ( checkbox1, false ) 
            guiSetEnabled ( checkbox2, true ) 
            if(sound)then return end 
            sound = playSound("http://play.media.weziwezi.com/wezi_mp3/mp3/3/8_tcObZMhRc.mp3",true) 
            elseif(source == checkbox2)then 
            guiSetEnabled ( checkbox2, false ) 
            guiSetEnabled ( checkbox1, true ) 
            guiCheckBoxSetSelected ( checkbox1, false ) 
            if(sound)then 
            stopSound(sound) 
            sound = nil 
            end 
        end 
    end 
) 
  
guiSetVisible (wnd, false) 
for i,ha in ipairs(Handling) do 
    local row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid,row,1,''..i..'-',false,false) 
    guiGridListSetItemText(grid,row,2,ha[1],false,false) 
    guiGridListSetIREtemData(grid,row,1,{ha[2],ha[3],ha[4]}) 
    guiGridListSetItemColor(grid,row,2,math.random(0,200),math.random(0,200),math.random(0,188)) 
    guiGridListSetItemColor(grid,row,1,math.random(0,200),math.random(0,200),math.random(0,188)) 
end 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        local sel = guiGridListGetSelectedItem(grid) 
        if source == ok then 
            if sel ~= -1 then 
 if not isPedInVehicle(localPlayer) then return outputChatBox("ليس لديك سيارة لتطبيق الوزنية",255,0,0,true) end; 
local hand = unpack(guiGridListGetItemData(grid,sel,1)) 
    importHandling(getPedOccupiedVehicle(localPlayer), hand, "SA") 
        setTimer(function() 
        guiSetVisible (wnd, false) 
end,900,1,true) 
                outputChatBox(" تم تركيب الوزنية بنجاح ",255,255,0) 
            else 
                outputChatBox(" الرجاء اختيار وزنية ",255,255,0) 
            end 
        end 
    end 
) 
  
  
-------------------- 
  
 -- start Font 
 Font = guiCreateFont( "Font.ttf", 12 )  
 guiSetFont( grid, Font )   
 Font = guiCreateFont( "Font.ttf", 13 )  
 guiSetFont( ok, Font ) 
  Font = guiCreateFont( "Font.ttf", 13 )  
 guiSetFont( checkbox1, Font ) 
   Font = guiCreateFont( "Font.ttf", 13 )  
 guiSetFont( checkbox2, Font ) 
 -- end Font 
  
  

Link to comment
guiElement: the GUI element whose visibility is to be changed

guiSetVisible(namebutton,true)

ع حسب مافهمته منك

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

زبطت تانكس

بس طلع لي مشاكل تانية

يليل

:lol::lol::lol::lol::lol:

Link to comment
guiElement: the GUI element whose visibility is to be changed

guiSetVisible(namebutton,true)

ع حسب مافهمته منك

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

زبطت تانكس

بس طلع لي مشاكل تانية

يليل

:lol::lol::lol::lol::lol:

وش مشاكلك

:lol::lol::lol::lol::lol:

Link to comment

شبااب

راسي انفجر

:|

اللوحة مضبطها في تصميم

ولما تجي برمجة يخرب كلشي

عدت تصميم لوحة اكتر من 7 مرات

وما ضبط

والوزنيات كانو ب قريت ليست

لما اضفت كود خرب صار واحد

صورة

http://d.top4top.net/p_188jq0h1.jpg

د هو

وكلنت

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
FontLabel = guiCreateFont( "Font.ttf", 13 ) 
  
FontButton = guiCreateFont( "Font.ttf", 13 ) 
  
guiSetFont(show, FontWnd) 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
        wnd = guiCreateWindow(119, 119, 623, 390, " by Dr.Marco#لوحة الوزنيات وتشغيل هردز", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(wnd, 0.94) 
        guiSetProperty(wnd, "CaptionColour", "FFC6D200") 
        
  
        ok = guiCreateButton(393, 176, 215, 40,"# - Apply | تطبيق - #", false, wnd) 
        guiSetFont(ok, "default-bold-small") 
        guiSetProperty(ok, "NormalTextColour", "FF00FBE1") 
  
        grid = guiCreateGridList(9, 27, 305, 346, false, wnd) 
        guiSetFont(grid, FontWnd) 
        guiGridListAddColumn(grid, "#", 0.2) 
        guiGridListAddColumn(grid, "Handling", 0.7) 
        guiSetAlpha(grid, 0.7) 
        
        checkbox1 = guiCreateButton(512, 225, 212, 44, "تشغيل الهدرز / Start Hadrz", false, wnd) 
        guiSetFont(checkbox1, "default-bold-small") 
        guiSetProperty(checkbox1, "NormalTextColour", "FF00FBE1") 
        checkbox2 = guiCreateButton(515, 354, 215, 38, "إيقاف الهدرز / Stop Hadrz", false, wnd) 
        guiSetProperty(checkbox2, "default-bold-small", "FFE9FE00") 
        addEventHandler("onClientGUIClick", root, 
    function() 
            if(source == checkbox1)then 
            guiCheckBoxSetSelected ( checkbox2, false ) 
            guiSetEnabled ( checkbox1, false ) 
            guiSetEnabled ( checkbox2, true ) 
            if(sound)then return end 
            sound = playSound("http://play.media.weziwezi.com/wezi_mp3/mp3/3/8_tcObZMhRc.mp3",true) 
            elseif(source == checkbox2)then 
            guiSetEnabled ( checkbox2, false ) 
            guiSetEnabled ( checkbox1, true ) 
            guiCheckBoxSetSelected ( checkbox1, false ) 
            if(sound)then 
            stopSound(sound) 
            sound = nil 
            end 
        end 
    end 
) 
  
guiSetVisible (wnd, false) 
for i,ha in ipairs(Handling) do 
    local row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid,row,1,''..i..'-',false,false) 
    guiGridListSetItemText(grid,row,2,ha[1],false,false) 
    guiGridListSetIREtemData(grid,row,1,{ha[2],ha[3],ha[4]}) 
    guiGridListSetItemColor(grid,row,2,math.random(0,200),math.random(0,200),math.random(0,188)) 
    guiGridListSetItemColor(grid,row,1,math.random(0,200),math.random(0,200),math.random(0,188)) 
end 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        local sel = guiGridListGetSelectedItem(grid) 
        if source == ok then 
            if sel ~= -1 then 
 if not isPedInVehicle(localPlayer) then return outputChatBox("ليس لديك سيارة لتطبيق الوزنية",255,0,0,true) end; 
local hand = unpack(guiGridListGetItemData(grid,sel,1)) 
    importHandling(getPedOccupiedVehicle(localPlayer), hand, "SA") 
        setTimer(function() 
        guiSetVisible (wnd, false) 
end,900,1,true) 
                outputChatBox(" تم تركيب الوزنية بنجاح ",255,255,0) 
            else 
                outputChatBox(" الرجاء اختيار وزنية ",255,255,0) 
            end 
        end 
    end 
) 
  
  
-------------------- 
  
 -- start Font 
 Font = guiCreateFont( "Font.ttf", 12 ) 
 guiSetFont( grid, Font )   
 Font = guiCreateFont( "Font.ttf", 13 ) 
 guiSetFont( ok, Font ) 
  Font = guiCreateFont( "Font.ttf", 13 ) 
 guiSetFont( checkbox1, Font ) 
   Font = guiCreateFont( "Font.ttf", 13 ) 
 guiSetFont( checkbox2, Font ) 
 -- end Font 
  
  

وينو غلط

مساعدة

Link to comment
شبااب

راسي انفجر

:|

اللوحة مضبطها في تصميم

ولما تجي برمجة يخرب كلشي

عدت تصميم لوحة اكتر من 7 مرات

وما ضبط

والوزنيات كانو ب قريت ليست

لما اضفت كود خرب صار واحد

صورة

http://d.top4top.net/p_188jq0h1.jpg

د هو

وكلنت

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
FontLabel = guiCreateFont( "Font.ttf", 13 ) 
  
FontButton = guiCreateFont( "Font.ttf", 13 ) 
  
guiSetFont(show, FontWnd) 
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false) 
end 
  
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
        wnd = guiCreateWindow(119, 119, 623, 390, " by Dr.Marco#لوحة الوزنيات وتشغيل هردز", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(wnd, 0.94) 
        guiSetProperty(wnd, "CaptionColour", "FFC6D200") 
        
  
        ok = guiCreateButton(393, 176, 215, 40,"# - Apply | تطبيق - #", false, wnd) 
        guiSetFont(ok, "default-bold-small") 
        guiSetProperty(ok, "NormalTextColour", "FF00FBE1") 
  
        grid = guiCreateGridList(9, 27, 305, 346, false, wnd) 
        guiSetFont(grid, FontWnd) 
        guiGridListAddColumn(grid, "#", 0.2) 
        guiGridListAddColumn(grid, "Handling", 0.7) 
        guiSetAlpha(grid, 0.7) 
        
        checkbox1 = guiCreateButton(512, 225, 212, 44, "تشغيل الهدرز / Start Hadrz", false, wnd) 
        guiSetFont(checkbox1, "default-bold-small") 
        guiSetProperty(checkbox1, "NormalTextColour", "FF00FBE1") 
        checkbox2 = guiCreateButton(515, 354, 215, 38, "إيقاف الهدرز / Stop Hadrz", false, wnd) 
        guiSetProperty(checkbox2, "default-bold-small", "FFE9FE00") 
        addEventHandler("onClientGUIClick", root, 
    function() 
            if(source == checkbox1)then 
            guiCheckBoxSetSelected ( checkbox2, false ) 
            guiSetEnabled ( checkbox1, false ) 
            guiSetEnabled ( checkbox2, true ) 
            if(sound)then return end 
            sound = playSound("http://play.media.weziwezi.com/wezi_mp3/mp3/3/8_tcObZMhRc.mp3",true) 
            elseif(source == checkbox2)then 
            guiSetEnabled ( checkbox2, false ) 
            guiSetEnabled ( checkbox1, true ) 
            guiCheckBoxSetSelected ( checkbox1, false ) 
            if(sound)then 
            stopSound(sound) 
            sound = nil 
            end 
        end 
    end 
) 
  
guiSetVisible (wnd, false) 
for i,ha in ipairs(Handling) do 
    local row = guiGridListAddRow(grid) 
    guiGridListSetItemText(grid,row,1,''..i..'-',false,false) 
    guiGridListSetItemText(grid,row,2,ha[1],false,false) 
    guiGridListSetIREtemData(grid,row,1,{ha[2],ha[3],ha[4]}) 
    guiGridListSetItemColor(grid,row,2,math.random(0,200),math.random(0,200),math.random(0,188)) 
    guiGridListSetItemColor(grid,row,1,math.random(0,200),math.random(0,200),math.random(0,188)) 
end 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        local sel = guiGridListGetSelectedItem(grid) 
        if source == ok then 
            if sel ~= -1 then 
 if not isPedInVehicle(localPlayer) then return outputChatBox("ليس لديك سيارة لتطبيق الوزنية",255,0,0,true) end; 
local hand = unpack(guiGridListGetItemData(grid,sel,1)) 
    importHandling(getPedOccupiedVehicle(localPlayer), hand, "SA") 
        setTimer(function() 
        guiSetVisible (wnd, false) 
end,900,1,true) 
                outputChatBox(" تم تركيب الوزنية بنجاح ",255,255,0) 
            else 
                outputChatBox(" الرجاء اختيار وزنية ",255,255,0) 
            end 
        end 
    end 
) 
  
  
-------------------- 
  
 -- start Font 
 Font = guiCreateFont( "Font.ttf", 12 ) 
 guiSetFont( grid, Font )   
 Font = guiCreateFont( "Font.ttf", 13 ) 
 guiSetFont( ok, Font ) 
  Font = guiCreateFont( "Font.ttf", 13 ) 
 guiSetFont( checkbox1, Font ) 
   Font = guiCreateFont( "Font.ttf", 13 ) 
 guiSetFont( checkbox2, Font ) 
 -- end Font 
  
  

وينو غلط

مساعدة

بتفجر راسي انت - وضح مشكلتك

:redhotevil::redhotevil::redhotevil::redhotevil:

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