Jump to content

طلب


Adham

Recommended Posts

سلام عليكم اليوم عامل مود سبورت سيستم

وعاوز اليضعط علي send

وهوا مش محدد support

او Player

يطلع له لوحة info انا الهعملها

ولما يحدد Player او Support

يكتب عادي

Link to comment

يغال يافهمني

انا عامل لوحة سبورت سيستم تمام؟

وعامل فيها button

اسمه send

ليبعت رساله للقريد لست عشان يكتب

انا عاوز اليضعط علي send

وهوا مش محدد شي بالقريد لست

يطلع له لوحة انا هسويها

Link to comment

مثال بسيط

استبدل المتغيرات داخل الكود

addEventHandler("onClientGUIClick", root, 
function() 
      if source == buttonName then 
            if guiCheckBoxGetSelected( checkBox ) then 
                   local row = guiGridListAddRow( GridListName ) 
                   local text=guiGetText( Edit ) 
                   guiGridListSetItemText( GridListName, row, 1, text, false, false ) 
            else end 
      end 
end) 

#تعديل

Link to comment

وين الخطاء هنا

GUIEditor = { 
    checkbox = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(144, 127, 457, 373, "#", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1] ,false) -- عدم اظهار الوحة وقت تشغيل المود  
        GUIEditor.button[1] = guiCreateButton(90, 203, 282, 53, "Send", false, GUIEditor.window[1]) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(90, 175, 237, 18, "Player", true, false, GUIEditor.window[1])    
    GUIEditor.gridlist[1] = guiCreateGridList(106, 52, 295, 108, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "message", 0.9) 
        GUIEditor.edit[1] = guiCreateEdit(94, 263, 288, 41, "", false, GUIEditor.window[1])   
         
        wnd2 = guiCreateWindow(209, 219, 336, 180, "info", false) 
        guiWindowSetSizable(wnd2, false) 
        guiSetVisible(wnd2 ,false) 
        GUIEditor.button[1] = guiCreateButton(71, 134, 197, 15, "Ok", false, wnd2)     
         
    end 
) 
  
  
function Strong ( )   
guiSetVisible ( GUIEditor.window[1],true )  
showCursor ( true ) -- اظهار الماوس  
end  
addCommandHandler ( "Tag",Strong )  
  
  
addEventHandler("onClientGUIClick", root, 
function() 
      if source == GUIEditor.button[1] then 
            if guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) then 
                   local row = guiGridListAddRow( GUIEditor.gridlist[1] ) 
                   local text=guiGetText( GUIEditor.edit[1] ) 
                   guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, text, false, false ) 
            else end 
      end 
end) 

Link to comment

طيب انا عملتها

هوا ينفع انا اعمل اللوحة التاني

اهي معايا الاكواد

ان يفتح من button

للوحة التانيه

عاوز لما يفتح اللوحة التانيه

ما تقفل اللوحة الاوله

وش استخدم فكشن

Link to comment
ولله معرف سو فيكم خلاص عرفنا انكم مبرمجبن اتركو الناي تتعلم لو هيفضلو هيك هيتعودو ياخدو اكواد جاهزة

اتركوهم ياحاولو بنفسهم

يتعلم من الجاهز وش فيها

Link to comment
ولله معرف سو فيكم خلاص عرفنا انكم مبرمجبن اتركو الناي تتعلم لو هيفضلو هيك هيتعودو ياخدو اكواد جاهزة

اتركوهم ياحاولو بنفسهم

يتعلم من الجاهز وش فيها

نقدر ناخذك كمثال

عطيناك جاهز لوش وصلت؟ 8)

Link to comment
Window = guiCreateWindow(144, 127, 457, 373, "#", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window ,false() 
Button1 = guiCreateButton(90, 203, 282, 53, "Send", false, Window) 
Checkbox1 = guiCreateCheckBox(90, 175, 237, 18, "Player", true, false, Window)   
Gridlist = guiCreateGridList(106, 52, 295, 108, false, Window) 
guiGridListAddColumn(Gridlist, "Message", 0.9) 
edit1 = guiCreateEdit(94, 263, 288, 41, "", false, Window)   
wnd2 = guiCreateWindow(209, 219, 336, 180, "info", false) 
guiWindowSetSizable(wnd2, false) 
guiSetVisible(wnd2 ,false) 
Button1 = guiCreateButton(71, 134, 197, 15, "Ok", false, wnd2)     
  
addCommandHandler ( "Tag", 
function ( )   
guiSetVisible ( Window, not guiGetVisible( Window ) ) 
showCursor ( guiSetVisible(Window) ) 
end ) 
  
  
  
addEventHandler("onClientGUIClick", Button1, 
function() 
            if ( Box == true ) then 
                   local Row , Text , Box = guiGridListAddRow( Gridlist ) , guiGetText( edit1 ) , guiCheckBoxGetSelected( Checkbox1 ) 
                       guiGridListSetItemText( Gridlist, Row, 1, Text, false, false ) 
                       guiGridListSetItemColor ( Gridlist, Row, 1, 255, 255, 0 ) 
            end 
    end , false ) 

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