Jump to content

طلب سريع


Recommended Posts

Posted

سلام عليكم انا مسوي 2 شيك بوكس

ابي لما يحدد علي شيك بوكس واحد

وضعط علي ال button

يجي الهو حدوو في القريد لست

ولو حدد ال2شيك بوكس التاني

يجي برده

Posted

guiGridListAddRow 
guiGridListSetItemText 
guiCheckBoxGetSelected 
addEventHandler = ("onClientGUIClick") 

اعتمد علي نفسك شوي -_- كل طلباتك تافها

Posted

ما ظبت

addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( )   
if ( source == GUIEditor.button[3] ) then 
local Row = guiGridListAddRow( grid ) 
if ( guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) and guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) 
 guiGridListSetItemText( grid, Row, Column4,guiCheckBoxSetSelected(GUIEditor.checkbox[1]),false,false) 
end 
end) 

Posted

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 
  
function SetWindowVisible ( Panel , StatsP , StatsC ) 
    guiSetVisible( Panel , StatsP) 
        showCursor( StatsC ) 
            centerWindow( Panel ) 
end 
  
local screenW, screenH = guiGetScreenSize() 
Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window,false) 
GridList = guiCreateGridList(9, 32, 336, 236, false, Window) 
local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) 
CheckBox1 = guiCreateCheckBox(12, 290, 123, 15, "1 Card", false,false, Window) 
CheckBox2 = guiCreateCheckBox(154, 290, 123, 15, "STC", false,false, Window)     
button = guiCreateButton(290, 302, 55, 16, "Create", false, Window)     
  
addEventHandler('onClientGUIClick',button, 
function ( ) 
guiGridListClear( GridList ) 
if ( guiCheckBoxGetSelected(CheckBox1) == true ) then  
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(CheckBox2) == true )  then 
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'STC',false,false) 
    end 
end , false ) 
  
addCommandHandler('Open', function ( ) local Get = guiGetVisible(Window) SetWindowVisible ( Window , not Get , not Get  ) end ) 
  
  

سويت لك المود كامل :o:o:o

Posted

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

  
addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
         local Row = guiGridListAddRow( grid ) 
        guiGridListSetItemText( grid, Row,  Column4,'30ج',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
         local Row = guiGridListAddRow( grid ) 
        guiGridListSetItemText( grid, Row,  Column4,'50ج',false,false) 
    end 
end , false ) 

Posted
ما ظبت
addEventHandler ( "onClientGUIClick", resourceRoot, 
function ( )   
if ( source == GUIEditor.button[3] ) then 
local Row = guiGridListAddRow( grid ) 
if ( guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) and guiCheckBoxSetSelected(GUIEditor.checkbox[1]) == true ) 
 guiGridListSetItemText( grid, Row, Column4,guiCheckBoxSetSelected(GUIEditor.checkbox[1]),false,false) 
end 
end) 

addEventHandler("onClientGUIClick", root, 
function() 
if source == BTN then 
local cheak1 =  guiCheckBoxGetSelected(CheakBox1) 
local cheak2 =  guiCheckBoxGetSelected(CheakBox2) 
if cheak1 == true and cheak2 == true then 
local Row = guiGridListAddRow(gridlist) 
guiGridListSetItemText( gridlist, Row, 1,"Your Text", false, false) 
end 
end 
end) 
  
Posted

ما ظبت

كل الاكواد

addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)     

Posted
ما ظبت

كل الاكواد

addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)     

كيف ما ظبت حقي

-_-

انتا اخترت ال2 و جربت تدوس ؟

ولا اخترت 1 فقط

Posted

ممكن المشكله من

ان اللوحة القريد لست

في لوحة تاني

والشيك بوكس في لوحة اخري

Posted

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd, false ) 
grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)   

وين كود انشاء الشيك بوكس ؟؟؟

تراك جالس تتلاعب على مخنا

بس الغلط مننا , اننا نساعدك

قلت لك حط الاكواد كامله دي مو كل الاكواد

+ احمد سد حلقك

وين الاند الناقص ؟

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

شف الكود حقي

وقول وين الاند الناقص

  
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 
function SetWindowVisible ( Panel , StatsP , StatsC ) 
    guiSetVisible( Panel , StatsP) 
        showCursor( StatsC ) 
            centerWindow( Panel ) 
end 
  
local screenW, screenH = guiGetScreenSize() 
Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window,false) 
GridList = guiCreateGridList(9, 32, 336, 236, false, Window) 
local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) 
CheckBox1 = guiCreateCheckBox(12, 290, 123, 15, "1 Card", false,false, Window) 
CheckBox2 = guiCreateCheckBox(154, 290, 123, 15, "STC", false,false, Window)     
button = guiCreateButton(290, 302, 55, 16, "Create", false, Window)     
  
addEventHandler('onClientGUIClick',button, 
function ( ) 
guiGridListClear( GridList ) 
if ( guiCheckBoxGetSelected(CheckBox1) == true ) then  
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'1 Card',false,false) 
    end 
if ( guiCheckBoxGetSelected(CheckBox2) == true )  then 
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'STC',false,false) 
    end 
end , false ) 
  
addCommandHandler('Open', function ( ) local Get = guiGetVisible(Window) SetWindowVisible ( Window , not Get , not Get  ) end ) 
Posted
wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd, false ) 
grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)   

وين كود انشاء الشيك بوكس ؟؟؟

تراك جالس تتلاعب على مخنا

بس الغلط مننا , اننا نساعدك

قلت لك حط الاكواد كامله دي مو كل الاكواد

+ احمد سد حلقك

وين الاند الناقص ؟

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

شف الكود حقي

وقول وين الاند الناقص

function SetWindowVisible ( Panel , StatsP , StatsC ) 
    guiSetVisible( Panel , StatsP) 
        showCursor( StatsC ) 
            centerWindow( Panel ) 
end 
  
local screenW, screenH = guiGetScreenSize() 
Window = guiCreateWindow((screenW - 355) / 2, (screenH - 328) / 2, 355, 328, "Test", false) 
guiWindowSetSizable(Window, false) 
guiSetVisible(Window,false) 
GridList = guiCreateGridList(9, 32, 336, 236, false, Window) 
local Colmn = guiGridListAddColumn(GridList, "Column", 0.9) 
CheckBox1 = guiCreateCheckBox(12, 290, 123, 15, "1 Card", false,false, Window) 
CheckBox2 = guiCreateCheckBox(154, 290, 123, 15, "STC", false,false, Window)     
button = guiCreateButton(290, 302, 55, 16, "Create", false, Window)     
  
addEventHandler('onClientGUIClick',button, 
function ( ) 
guiGridListClear( GridList ) 
if ( guiCheckBoxGetSelected(CheckBox1) == true ) then  
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'1 Card',false,false) 
    end 
if ( guiCheckBoxGetSelected(CheckBox2) == true )  then 
        guiGridListSetItemText( GridList, guiGridListAddRow( GridList ), Colmn,'STC',false,false) 
    end 
end , false ) 
  
addCommandHandler('Open', function ( ) local Get = guiGetVisible(Window) SetWindowVisible ( Window , not Get , not Get  ) end ) 

مو انتا اقول علي كودو اول كود فوق +

احترم نفسك شوي انا بكلمك بأدب

+

ما حد قالك لا تساعدو فوق هو ما فهم تبي تساعدو ما تبي حريتك ما حد مسكك و قالك ساعدو :?

Posted

اوكيةة انا شكيت انك تكلمني لاني قلت انا مجربه , وانت رديت قلت كيف مجربه وهو ناقص 2 اند

+ انا اساعده بس هو بيصعب علينا الموضوع

المفروض يطرح الاكواد ويخلصنا

خايف على شو الله يهديك + اسف احمد\

:lol::lol:

Posted

عادي + لعبة كودك تحطو كلو عشان نساعدك زي ما قال سوكنج او لا تحطو و بصراحة ما حد هيساعدك انتا مو معطينا شي نصلحو لك : -

Posted

قلت فوق

انا عامل 2 شيك بوكس بلوحة الاوله

و القريد لست في الوحة التانيه

Posted
GUIEditor.checkbox[1] = guiCreateCheckBox(135, 256, 214, 19, "مميز ( 50 جنيه / شهرين )", false, false, GUIEditor.window[1]) 
        GUIEditor.checkbox[2] = guiCreateCheckBox(330, 260, 214, 19, "عادي ( 30 جنيه / شهرين )", false, false, GUIEditor.window[1]) 

wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        local Colmn = guiGridListAddColumn(grid, "ChedkBox", 0.2)     

واحد يفتح ف10

والفي قريد لست

ف9

Posted

يخي افهم

انا عامل الشيك بوكس

في لوحة اوله

والقريد لست

بالحوه تاني !

بالوحه

Posted

الوحتين اهم !

GUIEditor = { 
    checkbox = {}, 
    window = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(289, 180, 374, 286, "#text", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetVisible(GUIEditor.window[1], false) 
        GUIEditor.checkbox[1] = guiCreateCheckBox(14, 67, 246, 15, "Card", false, false, GUIEditor.window[1]) 
        GUIEditor.checkbox[2] = guiCreateCheckBox(14, 97, 246, 15, "STC", false, false, GUIEditor.window[1]) 
        GUIEditor.button[2] = guiCreateButton(76, 154, 225, 27, "Send", false, GUIEditor.window[1])     
         
        wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
        guiWindowSetSizable(wnd, false) 
         guiSetVisible(wnd, false ) 
        grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
        guiGridListAddColumn(grid, "ChedkBox", 0.2)  
         
    end 
) 
  
  
guiSetVisible ( GUIEditor.window[1], false ) 
        function OpenWin() 
    if guiGetVisible ( GUIEditor.window[1] ) then   
       guiSetVisible ( GUIEditor.window[1], false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( GUIEditor.window[1], true ) 
        showCursor(true) 
        guiSetInputEnabled(true) 
  
    end 
end 
bindKey("F10", "down", OpenWin) 
  
guiSetVisible ( wnd, false ) 
        function OpenWin() 
    if guiGetVisible ( wnd ) then   
       guiSetVisible ( wnd, false ) 
       showCursor(false) 
       guiSetInputEnabled(false) 
    else 
        guiSetVisible ( wnd, true ) 
        showCursor(true) 
        guiSetInputEnabled(false) 
  
    end 
end 
bindKey("F9", "down", OpenWin) 
  
  
addEventHandler('onClientGUIClick',GUIEditor.button[1], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 

Posted (edited)

  
GUIEditor = { checkbox = {}, window = {}, button = {} } 
GUIEditor.window[1] = guiCreateWindow(289, 180, 374, 286, "#text", false) 
guiWindowSetSizable(GUIEditor.window[1], false) 
guiSetVisible(GUIEditor.window[1], false) 
GUIEditor.checkbox[1] = guiCreateCheckBox(14, 67, 246, 15, "Card", false, false, GUIEditor.window[1]) 
GUIEditor.checkbox[2] = guiCreateCheckBox(14, 97, 246, 15, "STC", false, false, GUIEditor.window[1]) 
GUIEditor.button[2] = guiCreateButton(76, 154, 225, 27, "Send", false, GUIEditor.window[1])     
wnd = guiCreateWindow(90, 103, 618, 437, "#", false) 
guiWindowSetSizable(wnd, false) 
guiSetVisible(wnd, false ) 
grid = guiCreateGridList(9, 21, 599, 406, false, wnd) 
guiGridListAddColumn(grid, "ChedkBox", 0.2) 
  
guiSetVisible ( GUIEditor.window[1], false ) 
guiSetVisible ( wnd, false ) 
  
bindKey("F10", "down",  
function ( ) 
    guiSetVisible ( GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1]) ) 
        showCursor( guiGetVisible(GUIEditor.window[1]) ) 
            guiSetInputEnabled( guiGetVisible(GUIEditor.window[1]) ) 
end ) 
  
  
 bindKey("F9", "down",  
function ( ) 
    guiSetVisible ( wnd, not guiGetVisible(wnd) ) 
        showCursor( guiGetVisible(wnd) ) 
            guiSetInputEnabled( guiGetVisible(wnd) ) 
end ) 
  
  
  
addEventHandler('onClientGUIClick',GUIEditor.button[2], 
function ( ) 
guiGridListClear(grid ) 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true ) then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'1 Card',false,false) 
        end 
if ( guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == true )  then 
        guiGridListSetItemText( grid, guiGridListAddRow( grid ), Colmn,'STC',false,false) 
    end 
end , false ) 
Edited by Guest

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