Jump to content

سؤال


Recommended Posts

 GRID = guiCreateGridList(13, 28, 482, 413, false, GUIEditor.window[2]) 
        Column1 = guiGridListAddColumn(GRID, "Name", 0.3) 
        Column2 = guiGridListAddColumn(GRID, "MailName", 0.3) 
        Column3 = guiGridListAddColumn(GRID, "Card", 0.3) 
      
        GUIEditor.button[4] = guiCreateButton(18, 442, 21, 20, "X", false, GUIEditor.window[2]) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFAAAAAA") 
        GUIEditor.edit[4] = guiCreateEdit(249, 441, 207, 25, "", false, GUIEditor.window[2]) 
        GUIEditor.edit[5] = guiCreateEdit(249, 466, 207, 25, "", false, GUIEditor.window[2]) 
        GUIEditor.edit[6] = guiCreateEdit(9, 482, 207, 25, "", false, GUIEditor.window[2]) 
        GUIEditor.edit[7] = guiCreateEdit(249, 491, 207, 25, "", false, GUIEditor.window[2]) 
        GUIEditor.label[12] = guiCreateLabel(462, 447, 37, 15, "الاسم", false, GUIEditor.window[2]) 
        GUIEditor.label[13] = guiCreateLabel(462, 447, 37, 15, "الاسم", false, GUIEditor.window[2]) 
        GUIEditor.label[14] = guiCreateLabel(462, 472, 37, 15, "الاميل", false, GUIEditor.window[2]) 
        GUIEditor.label[15] = guiCreateLabel(462, 497, 37, 15, "الدفع", false, GUIEditor.window[2]) 
        GUIEditor.label[16] = guiCreateLabel(170, 456, 56, 16, "كود البطاقة", false, GUIEditor.window[2])     

Link to comment

اوك لما خلتهم كده مشتغلش

addEventHandler("onClientGUIClick",root, 
function() 
if source == GRID  then 
local name = guiGridListGetItemText(GRID, guiGridListGetSelectedItem(GRID), Column1 ) 
guiSetText(GUIEditor.edit[4], name) 
end 
end) 
  
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GRID  then 
local name = guiGridListGetItemText(GRID, guiGridListGetSelectedItem(GRID), Column2 ) 
guiSetText(GUIEditor.edit[5], name) 
end 
end) 
  
  
addEventHandler("onClientGUIClick",root, 
function() 
if source == GRID  then 
local name = guiGridListGetItemText(GRID, guiGridListGetSelectedItem(GRID), Column3 ) 
guiSetText(GUIEditor.edit[6], name) 
end 
end) 

+ ---------------------

عاوز

  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == GUIEditor.button[3] ) then 
            guiSetVisible(GUIEditor.window[1],false) 
            showCursor(false) 
        elseif ( source ==  GUIEditor.button[1] ) then 
            if ( guiGetText ( GUIEditor.edit[1] ) and guiGetText ( GUIEditor.edit[2] ) and guiGetText ( GUIEditor.edit[3] ) ~= '' ) then 
                local row = guiGridListAddRow (GUIEditor.gridlist[1]) 
                 local row = guiGridListAddRow ( GRID) 
                guiGridListSetItemText (GRID,row,Column1,guiGetText( GUIEditor.edit[1]),false,false) 
               guiGridListSetItemText (GRID,row,Column2,guiGetText( GUIEditor.edit[2]),false,false) 
               guiGridListSetItemText (GRID,row,Column3,guiGetText( GUIEditor.edit[3]),false,false) 
                outputChatBox('[RentSystem]: تم ارسال الطلب ',0,255,0,true ) 
              end 
        end 
    end 
) 

يضاف عليه

اذا اختار وحد من دول

 GUIEditor.radiobutton[1] = guiCreateRadioButton(348, 232, 120, 16, "موبايلي", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.radiobutton[1], "NormalTextColour", "FFFEFEFE") 
        GUIEditor.radiobutton[2] = guiCreateRadioButton(348, 258, 120, 16, "كاش يو", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.radiobutton[2], "NormalTextColour", "FFFEFEFE") 
        guiRadioButtonSetSelected(GUIEditor.radiobutton[2], true) 
        GUIEditor.radiobutton[3] = guiCreateRadioButton(348, 284, 120, 16, "اتصلات", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.radiobutton[3], "NormalTextColour", "FFFEFEFE") 

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