Adham Posted May 11, 2016 Share Posted May 11, 2016 سلام عليكم عملت قريد لست وعملت قدول مب بيظهر في القريد لست الكود : Table = { {"Code Red"} } + for i , v in ipairs ( Table ) do Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1],Row ,1,v[1],false,false) end Link to comment
[iMr]-W[i]Fi,.! Posted May 11, 2016 Share Posted May 11, 2016 تاكد من اسم الجريد ليست ضيف قبل كلمهrow local Link to comment
Adham Posted May 11, 2016 Author Share Posted May 11, 2016 برده نفس المشكله ما يظهر حتا الاسم جطيطو صح Link to comment
Adham Posted May 11, 2016 Author Share Posted May 11, 2016 ranks = { {'Army',Army}, {'Army',Army}, {'Army',Army} } Marker = createMarker ( 1589.60364, -1287.29236, 19.98314-3.5, "cylinder", 2.5, 0, 255, 255, 255 ) setElementAlpha(Marker, 0) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) for _, v in ipairs (ranks) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) end ما يظهر Link to comment
Adham Posted May 11, 2016 Author Share Posted May 11, 2016 ranks = { {'Army',Army}, {'Army',Army}, {'Army',Army} } Marker = createMarker ( 1589.60364, -1287.29236, 19.98314-3.5, "cylinder", 2.5, 0, 255, 255, 255 ) setElementAlpha(Marker, 0) GUIEditor = { staticimage = {}, label = {}, gridlist = {}, window = {}, button = {} } addEventHandler("onClientResourceStart", resourceRoot, function () GUIEditor.window[1] = guiCreateWindow(168, 121, 452, 412, ":: SuperMarket Free ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(257, 130, 155, 123, ":admin/client/images/error.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(276, 371, 166, 25, "Created By [L]e3bA | v4.3.1", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) GUIEditor.button[1] = guiCreateButton(10, 305, 228, 38, "Buy", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 228, 38, "X", false, GUIEditor.window[1]) grid = guiCreateGridList(9, 28, 229, 267, false, GUIEditor.window[1]) guiGridListAddColumn(grid, "Menu", 0.9) end ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) for _, v in ipairs (ranks) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) end Link to comment
#|_oskar_|# Posted May 11, 2016 Share Posted May 11, 2016 (edited) ranks = { {'Army',Army}, {'Army',Army}, {'Army',Army} } Marker = createMarker ( 1589.60364, -1287.29236, 19.98314-3.5, "cylinder", 2.5, 0, 255, 255, 255 ) setElementAlpha(Marker, 0) GUIEditor = { staticimage = {}, label = {}, gridlist = {}, window = {}, button = {}} addEventHandler("onClientResourceStart", resourceRoot, function () GUIEditor.window[1] = guiCreateWindow(168, 121, 452, 412, ":: SuperMarket Free ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(257, 130, 155, 123, ":admin/client/images/error.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(276, 371, 166, 25, "Created By [L]e3bA | v4.3.1", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) GUIEditor.button[1] = guiCreateButton(10, 305, 228, 38, "Buy", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 228, 38, "X", false, GUIEditor.window[1]) grid = guiCreateGridList(9, 28, 229, 267, false, GUIEditor.window[1]) guiGridListAddColumn(grid, "Menu", 0.9) for _, v in ipairs (ranks) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) end addEventHandler('onClientMarkerHit', Marker,MarkerHit) end) function MarkerHit( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end Edited May 11, 2016 by Guest Link to comment
Adham Posted May 11, 2016 Author Share Posted May 11, 2016 ذا لما حطيطه مش بيقتح guiGridListSetItemColor(grid, Row 1, v[2], 5, 131, 249, 255, false, false) Link to comment
Ahmed Ly Posted May 11, 2016 Share Posted May 11, 2016 ذا لما حطيطه مش بيقتح guiGridListSetItemColor(grid, Row 1, v[2], 5, 131, 249, 255, false, false) guiGridListSetItemColor(grid,Row, v[2], 5, 131, 249, 255, false, false) Link to comment
MR.GRAND Posted May 11, 2016 Share Posted May 11, 2016 ranks = { {'Army',Army}, {'Army',Army}, {'Army',Army} } Marker = createMarker ( 1589.60364, -1287.29236, 19.98314-3.5, "cylinder", 2.5, 0, 255, 255, 255 ) setElementAlpha(Marker, 0) GUIEditor = { staticimage = {}, label = {}, gridlist = {}, window = {}, button = {} } GUIEditor.window[1] = guiCreateWindow(168, 121, 452, 412, ":: SuperMarket Free ::", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(257, 130, 155, 123, ":admin/client/images/error.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(276, 371, 166, 25, "Created By [L]e3bA | v4.3.1", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 255, 0, 0) GUIEditor.button[1] = guiCreateButton(10, 305, 228, 38, "Buy", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(10, 353, 228, 38, "X", false, GUIEditor.window[1]) grid = guiCreateGridList(9, 28, 229, 267, false, GUIEditor.window[1]) guiGridListAddColumn(grid, "Menu", 0.9) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor.window[1], true ) showCursor( true ) end end ) for _, v in ipairs (ranks) do local Row = guiGridListAddRow(grid) guiGridListSetItemText(grid, Row, 1, v[1], false, false) end Link to comment
MR.GRAND Posted May 11, 2016 Share Posted May 11, 2016 ذا لما حطيطه مش بيقتح guiGridListSetItemColor(grid, Row 1, v[2], 5, 131, 249, 255, false, false) guiGridListSetItemColor(grid,Row, v[2], 5, 131, 249, 255, false, false) أسف على التعليق .! لآكن انت زدت الهريس هرسا guiGridListSetItemColor(grid, Row, 1, 131, 249, 255) -- كذا تصير 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