Jump to content

طلب قود


Adham

Recommended Posts

السسلأم عليكم

ابي كود

لما حد يضعط علي شي بالقريد لست

يعني انا ضايف قدول وعامل فيه

1- مخالفة

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

ويضعط علي button

يخش علي لوحة تاننيه

Link to comment

كذا خطا؟

addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( ) 
if ( source == GUIEditor.button[2] ) then 
guiSetVisible(wnd,false) 
guiSetVisible(wnd2,true) 
local Grid = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local data = guiGridListGetItemData ( GUIEditor.gridlist[1], Row, Clomu ) 
end 
end 
end) 

Link to comment
:arrowup:

سوي جدول

Table = { 
{"item1", (guiSetVisible(Window1, true))}, 
{"item2", (guiSetVisible(Window2, true))}, 
{"item3", (guiSetVisible(Window3, true))} 
} 

وسوي لوب للقريد لست وحط الأيتيمات في القريد لست وحط الداتا لكل ايتيم القيمة الثانية اللي بالجدول

ومن ثم جيب الداتا بالفنكشن وحط الكولمن اللي رح تسوي له داتا + جيب الأيتيم اللي محددها :wink:

Link to comment

ماشي كدا فيه خطا؟

[lua]addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( ) 
if ( source == GUIEditor.button[2] ) then 
guiSetVisible(wnd,false) 
guiSetVisible(wnd2,true) 
local Grid = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local data = guiGridListGetItemData ( GUIEditor.gridlist[1], Row, Clomu ) 
end 
end 
end) 

[/lua]

Link to comment
ماشي كدا فيه خطا؟
[lua]addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( ) 
if ( source == GUIEditor.button[2] ) then 
guiSetVisible(wnd,false) 
guiSetVisible(wnd2,true) 
local Grid = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local data = guiGridListGetItemData ( GUIEditor.gridlist[1], Row, Clomu ) 
end 
end 
end) 

[/lua]

[lua]addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( ) 
if ( source == GUIEditor.button[2] ) then 
guiSetVisible(wnd,false) 
guiSetVisible(wnd2,true) 
local select = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local data = guiGridListGetItemData ( GUIEditor.gridlist[1], select, 1 ) 
end 
end 
) 
Link to comment

طيب ..

لو عايز

اليكتب في الايديت حاجة تظهر في القريد لست لوحدها

يعني : واحد كتب في الايديت 1- مخالفه علي لعبة

بعدين ضعط button

اسمه

OK

تيجي مخالفه علي لعبة في القريد لست

وش استخدم؟

Link to comment
طيب ..

لو عايز

اليكتب في الايديت حاجة تظهر في القريد لست لوحدها

يعني : واحد كتب في الايديت 1- مخالفه علي لعبة

بعدين ضعط button

اسمه

OK

تيجي مخالفه علي لعبة في القريد لست

وش استخدم؟

guiGridListAddRow 
guiGridListSetItemText 

Link to comment

كدا فيه مشكله ؟

addEventHandler ( "onClientGUIClick", resourceRoot, 
function () 
if ( source == button ) then 
local row = guiGridListAddRow ( grid ) 
local Text = guiGridListSetItemText ( grid, row, clom,guiGetText(edit), false, false) ) 
end 
end 
) 
Link to comment

addEventHandler ( "onClientGUIClick", resourceRoot, 
function () 
if ( source == button ) then 
local row = guiGridListAddRow ( grid ) 
local Text = guiGridListSetItemText ( grid, guiGridListGetSelectedItem( grid ), 1,guiGetText(edit), false, false) ) 
end 
end 
) 
Link to comment

كودك صح بس كان زايد قوس

addEventHandler ( "onClientGUIClick", resourceRoot,function () 
if ( source == button ) then 
local row = guiGridListAddRow (grid) 
if guiGetText(edit) ~= '' then 
guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false)  
end 
end 
end) 

Link to comment

ما ظبتت

GUIEditor = { 
    button = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(211, 190, 361, 301, "", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
        grid = guiCreateGridList(10, 21, 245, 163, false, GUIEditor.window[1]) 
        local clom = guiGridListAddColumn(grid, "مخالفاتي", 0.9) 
        GUIEditor.button[1] = guiCreateButton(26, 213, 219, 35, "OK", false, GUIEditor.window[1]) 
        edit = guiCreateEdit(28, 188, 217, 25, "", false, GUIEditor.window[1])     
    end 
) 
  
  
  
  
function Strong ( )   
guiSetVisible ( GUIEditor.window[1],true )  
showCursor ( true ) -- اظهار الماوس  
end  
addCommandHandler ( "Teams",Strong )  
  
  
  
addEventHandler ( "onClientGUIClick", resourceRoot,function () 
if ( source == GUIEditor.button[1] ) then 
local row = guiGridListAddRow (grid) 
if guiGetText(edit) ~= '' then 
guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) 
end 
end 
end) 

Link to comment

    GUIEditor = { 
        button = {}, 
        window = {} 
    } 
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            GUIEditor.window[1] = guiCreateWindow(211, 190, 361, 301, "", false) 
            guiWindowSetSizable(GUIEditor.window[1], false) 
            guiSetVisible(GUIEditor.window[1], false) 
            grid = guiCreateGridList(10, 21, 245, 163, false, GUIEditor.window[1]) 
            local clom = guiGridListAddColumn(grid, "مخالفاتي", 0.9) 
            GUIEditor.button[1] = guiCreateButton(26, 213, 219, 35, "OK", false, GUIEditor.window[1]) 
            edit = guiCreateEdit(28, 188, 217, 25, "", false, GUIEditor.window[1])     
         
      
      
      
      
    function Strong ( )   
    guiSetVisible ( GUIEditor.window[1],true ) 
    showCursor ( true ) -- اظهار الماوس 
    end 
    addCommandHandler ( "Teams",Strong ) 
      
      
      
    addEventHandler ( "onClientGUIClick", resourceRoot,function () 
    if ( source == GUIEditor.button[1] ) then 
    local row = guiGridListAddRow (grid) 
    if guiGetText(edit) ~= '' then 
    guiGridListSetItemText (grid, row,clom,guiGetText(edit), false, false) 
    end 
    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...