EH10 Posted April 2, 2014 Share Posted April 2, 2014 السلام عليكم طلب فنكشات قريد ليست وزر فية اكثر من سياره والزر مغلق يعني ماتقدر تضغط اذا ضغطت على سياره راح ينفتح الزر واذا شلت عنه التضليل يتغلق الزر Link to comment
iPrestege Posted April 2, 2014 Share Posted April 2, 2014 السلام عليكمطلب فنكشات قريد ليست وزر فية اكثر من سياره والزر مغلق يعني ماتقدر تضغط اذا ضغطت على سياره راح ينفتح الزر واذا شلت عنه التضليل يتغلق الزر addEventHandler 'onClientGUIClick' guiGridListGetSelectedItem guiSetEnabled Link to comment
EH10 Posted April 2, 2014 Author Share Posted April 2, 2014 ممكن تصحيح addEventHandler("onClientGUIClick", Button, function () guiGridListGetSelectedItem( namegred ) guiSetEnabled( button, true ) end ) Link to comment
iPrestege Posted April 2, 2014 Share Posted April 2, 2014 addEventHandler ( 'onClientGUIClick',iGridList, function ( ) if ( guiGridListGetSelectedItem ( source ) == -1 ) then guiSetEnabled ( iButton,false ) else guiSetEnabled ( iButton,true ) end end,false ) بدل iGridList = اللستة حقتكـ .. iButton = الزر اللي ينفتح ويتقفل .. ولا تنسى تقفل الزر باضافة : guiSetEnabled ( iButton,false ) تحت كود انشاء الزر Link to comment
EH10 Posted April 2, 2014 Author Share Posted April 2, 2014 addEventHandler ( 'onClientGUIClick',iGridList, function ( ) if ( guiGridListGetSelectedItem ( source ) == -1 ) then guiSetEnabled ( iButton,false ) else guiSetEnabled ( iButton,true ) end end,false ) بدل iGridList = اللستة حقتكـ .. iButton = الزر اللي ينفتح ويتقفل .. ولا تنسى تقفل الزر باضافة : guiSetEnabled ( iButton,false ) تحت كود انشاء الزر ماضبط هاذا الكود كامل wndo = guiCreateWindow(0.3663,0.3083,0.23,0.4217,"skin",true) skisn = guiCreateButton(9,220,72,23,"choses",false,wndo) guiSetEnabled ( skisn,false ) gered = guiCreateGridList(9,23,134,184,false,wndo) guiGridListSetSelectionMode(gered,2) guiGridListAddColumn( gered, "skins", 1.0 ) local kikn = { {'skinh', 1 } } for i, kie in ipairs( kikn ) do row = guiGridListAddRow(gered) guiGridListSetItemText(gered, row, 1, kie[1], false, false) guiGridListSetItemData(gered, row, 1, kie[2]) end addEventHandler( "onClientGUIClick", root, function ( ) if ( source == skisn ) then local Row, column = guiGridListGetSelectedItem ( gered ) if ( Row and column and Row ~= -1 and column ~= -1 ) then local flash = tonumber( guiGridListGetItemData( gered, guiGridListGetSelectedItem( gered ) ) ) if flash and flash ~= '' then setElementModel ( localPlayer, flash ) if ( guiGridListGetSelectedItem ( source ) == -1 ) then guiSetEnabled ( skisn,false ) else guiSetEnabled ( skisn,true ) end end end end end,false ) Link to comment
iPrestege Posted April 2, 2014 Share Posted April 2, 2014 wndo = guiCreateWindow(0.3663,0.3083,0.23,0.4217,'skin',true) skisn = guiCreateButton(9,220,72,23,'Job',false,wndo) guiSetEnabled ( skisn,false ) gered = guiCreateGridList(9,23,134,184,false,wndo) guiGridListSetSelectionMode(gered,2) guiGridListAddColumn( gered, 'skins', 1.0 ) local kikn = { {'skinh', 1 } } for i, kie in ipairs( kikn ) do row = guiGridListAddRow(gered) guiGridListSetItemText(gered, row, 1, kie[1], false, false) guiGridListSetItemData(gered, row, 1, kie[2]) end addEventHandler( 'onClientGUIClick', skisn, function ( ) local Row, column = guiGridListGetSelectedItem ( gered ) if ( Row and column and Row ~= -1 and column ~= -1 ) then local flash = tonumber( guiGridListGetItemData( gered, guiGridListGetSelectedItem( gered ) ) ) if flash and flash ~= '' then setElementModel ( localPlayer,flash ) end end end,false ) addEventHandler ( 'onClientGUIClick',gered, function ( ) if ( guiGridListGetSelectedItem ( source ) == -1 ) then guiSetEnabled ( skisn,false ) else guiSetEnabled ( skisn,true ) end end,false ) Link to comment
EH10 Posted April 2, 2014 Author Share Posted April 2, 2014 wndo = guiCreateWindow(0.3663,0.3083,0.23,0.4217,'skin',true) skisn = guiCreateButton(9,220,72,23,'Job',false,wndo) guiSetEnabled ( skisn,false ) gered = guiCreateGridList(9,23,134,184,false,wndo) guiGridListSetSelectionMode(gered,2) guiGridListAddColumn( gered, 'skins', 1.0 ) local kikn = { {'skinh', 1 } } for i, kie in ipairs( kikn ) do row = guiGridListAddRow(gered) guiGridListSetItemText(gered, row, 1, kie[1], false, false) guiGridListSetItemData(gered, row, 1, kie[2]) end addEventHandler( 'onClientGUIClick', skisn, function ( ) local Row, column = guiGridListGetSelectedItem ( gered ) if ( Row and column and Row ~= -1 and column ~= -1 ) then local flash = tonumber( guiGridListGetItemData( gered, guiGridListGetSelectedItem( gered ) ) ) if flash and flash ~= '' then setElementModel ( localPlayer,flash ) end end end,false ) addEventHandler ( 'onClientGUIClick',gered, function ( ) if ( guiGridListGetSelectedItem ( source ) == -1 ) then guiSetEnabled ( skisn,false ) else guiSetEnabled ( skisn,true ) end end,false ) لو سمحت شكرا لاكن لما ازيد شخصية مايشتغل Link to comment
#DRAGON!FIRE Posted April 2, 2014 Share Posted April 2, 2014 تنسخ السطر وتحته تحط اول قيمة بـ الضبط ذذ Link to comment
iPrestege Posted April 2, 2014 Share Posted April 2, 2014 wndo = guiCreateWindow(0.3663,0.3083,0.23,0.4217,'skin',true) skisn = guiCreateButton(9,220,72,23,'Job',false,wndo) guiSetEnabled ( skisn,false ) gered = guiCreateGridList(9,23,134,184,false,wndo) guiGridListSetSelectionMode(gered,2) guiGridListAddColumn( gered, 'skins', 1.0 ) local kikn = { {'skinh', 1 } } for i, kie in ipairs( kikn ) do row = guiGridListAddRow(gered) guiGridListSetItemText(gered, row, 1, kie[1], false, false) guiGridListSetItemData(gered, row, 1, kie[2]) end addEventHandler( 'onClientGUIClick', skisn, function ( ) local Row, column = guiGridListGetSelectedItem ( gered ) if ( Row and column and Row ~= -1 and column ~= -1 ) then local flash = tonumber( guiGridListGetItemData( gered, guiGridListGetSelectedItem( gered ) ) ) if flash and flash ~= '' then setElementModel ( localPlayer,flash ) end end end,false ) addEventHandler ( 'onClientGUIClick',gered, function ( ) if ( guiGridListGetSelectedItem ( source ) == -1 ) then guiSetEnabled ( skisn,false ) else guiSetEnabled ( skisn,true ) end end,false ) لو سمحت شكرا لاكن لما ازيد شخصية مايشتغل واضح انك تنسخ من الجدول بدون اضافة فاصل؟ تسويه كذا شكلك : local kikn = { {'skinh', 1 } {'skinh2', 2 } {'skinh3', 3 } {'skinh4', 4 } } لكن المفترض وجود فاصل بينهم : local kikn = { {'skinh', 1 }; {'skinh2', 2 }; {'skinh3', 3 }; {'skinh4', 4 }; } Link to comment
EH10 Posted April 2, 2014 Author Share Posted April 2, 2014 تنسخ السطر وتحته تحط اول قيمة بـ الضبط ذذ يعطيك العافية لاكن حليت المشكلة قبل لاترد تم حل المشكلة من قبل Prestage ZA7Fشكراااااااااا Link to comment
#DRAGON!FIRE Posted April 2, 2014 Share Posted April 2, 2014 تنسخ السطر وتحته تحط اول قيمة بـ الضبط ذذ يعطيك العافية لاكن حليت المشكلة قبل لاترد تم حل المشكلة من قبل Prestage ZA7Fشكراااااااااا حياك الله ^ . Link to comment
iPrestege Posted April 2, 2014 Share Posted April 2, 2014 يعطيك العافية لاكن حليت المشكلة قبل لاترد تم حل المشكلة من قبل Prestage ZA7Fشكراااااااااا على الرحب و السعه .. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now