nxFairlywell Posted July 16, 2014 Share Posted July 16, 2014 السلام عليكم ورحمة الله وبركاته , اسعد الله صباحكم بكل خير , ي شباب 3 ساعات في القريد ليست والله ولا ضبطت ابعرف وين الخطأ Client side : ------------------------ --Handl ------------------------ Wzn = { {"مسرع بشويش بلس","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"مسرع بشويش","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر العتبان","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"}, {"وزنية جنرال","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"}, {"وزنية تنطيل","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"}, {"وزنية هجولة الدائري","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"}, {"وزنية كنق التطويف","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق البحري","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"}, {"وزنية رفع 1","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية رفع 2","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية نصب","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تفجير","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هجولة","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية دفع امامي","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"}, {"وزنية كسر الدرفت على البحر","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"}, {"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تنكيـس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الكامري","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الياباني","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"}, } ------------------------ --Window ------------------------ GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(335, 136, 234, 387, "Script Handling | Server Daoran", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) guiSetProperty(wnd, "CaptionColour", "FFF2E407") btn = guiCreateButton(10, 297, 215, 35, "إختيار الوزنية", false, wnd) guiSetProperty(btn, "NormalTextColour", "FF0AF473") grd = guiCreateGridList(9, 26, 215, 251, false, wnd) col = guiGridListAddColumn(grd, "قائمة الوزنيات", 0.9) GUIEditor.label[1] = guiCreateLabel(33, 364, 108, 18, "By General10", false, wnd) guiLabelSetColor(GUIEditor.label[1], 245, 114, 8 ) GUIEditor.label[2] = guiCreateLabel(118, 364, 129, 26, "| Server Daoran", false, wnd) guiLabelSetColor(GUIEditor.label[2], 241, 157, 11) GUIEditor.label[3] = guiCreateLabel(7, 316, 228, 44, "~~~~~~~~~~~~~~~~~~~~~~~~~", false, wnd) guiSetFont(GUIEditor.label[3], "sa-header") guiLabelSetColor(GUIEditor.label[3], 32, 241, 10) end ) ----------------- -- ----------------- --------- الديبوق يقول هنا لكن والله ماعرفت كيف اصلحه for k,g in ipairs ( Wzn ) do row = guiGridListAddRow(grd) guiGridListSetItemText(grd,row,1,g[1],false,false) guiGridListSetItemColor(grd,row,1,0,255,255) end addEventHandler("onClientGUIClick",root, function () local select = guiGridListGetSelectedItem(grd) if source == btn then if select ~= -1 then if not isPedInVehicle(localPlayer) then return outputChatBox("ماتقدر تسوي وزنيه لرجليك خذ موتر اول",255,0,0,true) end setTimer(function() guiSetVisible (wnd, false) end,1000,1,true) outputChatBox(" لقـد تم اختيار الوزنية بنجاح ",0,255,0) else outputChatBox(" فضلا اختر وزنية قبل الضغط على اختيار الوزنيه ",255,255,0) end end end ) Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 ماتظهر القائمة حق الوزنيات row Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 شف الديبوق في اي اخطاء ؟ Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 Bad argument @ 'guiGridListSetItemText' Bad argument @ 'guiGridListAddRow' Link to comment
Max+ Posted July 16, 2014 Share Posted July 16, 2014 (edited) --- جرب , Wzn = { {"مسرع بشويش بلس","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"مسرع بشويش","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر العتبان","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"}, {"وزنية جنرال","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"}, {"وزنية تنطيل","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"}, {"وزنية هجولة الدائري","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"}, {"وزنية كنق التطويف","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق البحري","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"}, {"وزنية رفع 1","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية رفع 2","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية نصب","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تفجير","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هجولة","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية دفع امامي","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"}, {"وزنية كسر الدرفت على البحر","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"}, {"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تنكيـس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الكامري","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الياباني","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"}, } ------------------------ --Window ------------------------ GUIEditor = { label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(335, 136, 234, 387, "Script Handling | Server Daoran", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) guiSetProperty(wnd, "CaptionColour", "FFF2E407") btn = guiCreateButton(10, 297, 215, 35, "إختيار الوزنية", false, wnd) guiSetProperty(btn, "NormalTextColour", "FF0AF473") grd = guiCreateGridList ( 9, 26, 215, 251, true, wnd ) col = guiGridListAddColumn(grd, "قائمة الوزنيات", 0.9) GUIEditor.label[1] = guiCreateLabel(33, 364, 108, 18, "By General10", false, wnd) guiLabelSetColor(GUIEditor.label[1], 245, 114, 8 ) GUIEditor.label[2] = guiCreateLabel(118, 364, 129, 26, "| Server Daoran", false, wnd) guiLabelSetColor(GUIEditor.label[2], 241, 157, 11) GUIEditor.label[3] = guiCreateLabel(7, 316, 228, 44, "~~~~~~~~~~~~~~~~~~~~~~~~~", false, wnd) guiSetFont(GUIEditor.label[3], "sa-header") guiLabelSetColor(GUIEditor.label[3], 32, 241, 10) end ) for _,v in ipairs ( Wzn ) do row = guiGridListAddRow(grd) guiGridListSetItemText(grd,row,col,v[1],false,false) guiGridListSetItemColor(grd,row,col,0,255,255) end addEventHandler("onClientGUIClick",resourceRoot, function () if source == btn then local row, col = guiGridListGetSelectedItem( grd ) if row and col and row ~= -1 and col ~= -1 then local ge = guiGridListGetItemText( grd, row, col ) if not isPedInVehicle(localPlayer) then return outputChatBox("ماتقدر تسوي وزنيه لرجليك خذ موتر اول",255,0,0,true) end setTimer(function() guiSetVisible (wnd, false) end,1000,1,true) outputChatBox(" لقـد تم اختيار الوزنية بنجاح ",0,255,0) else outputChatBox(" فضلا اختر وزنية قبل الضغط على اختيار الوزنيه ",255,255,0) end end end ) Edited July 16, 2014 by Guest Link to comment
Max+ Posted July 16, 2014 Share Posted July 16, 2014 نفس المشكله : جرب مره ثانية تو عدلت الكود + استخدم الديبق عشان نعرف وش السالفة . . Link to comment
' ρяofзśŝoя 亗 Posted July 16, 2014 Share Posted July 16, 2014 ------------------------ --Handl ------------------------ Wzn = { {"مسرع بشويش بلس","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"مسرع بشويش","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر العتبان","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"}, {"وزنية جنرال","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"}, {"وزنية تنطيل","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"}, {"وزنية هجولة الدائري","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"}, {"وزنية كنق التطويف","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق البحري","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"}, {"وزنية رفع 1","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية رفع 2","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية نصب","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تفجير","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هجولة","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية دفع امامي","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"}, {"وزنية كسر الدرفت على البحر","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"}, {"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تنكيـس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الكامري","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الياباني","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"}, } ------------------------ --Window ------------------------ wnd = guiCreateWindow(335, 136, 234, 387, "Script Handling | Server Daoran", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) guiSetProperty(wnd, "CaptionColour", "FFF2E407") btn = guiCreateButton(10, 297, 215, 35, "إختيار الوزنية", false, wnd) guiSetProperty(btn, "NormalTextColour", "FF0AF473") grd = guiCreateGridList(9, 26, 215, 251, false, wnd) col = guiGridListAddColumn(grd, "قائمة الوزنيات", 0.9) lebl1 = guiCreateLabel(33, 364, 108, 18, "By General10", false, wnd) guiLabelSetColor(lebl1, 245, 114, 8 ) lebl2 = guiCreateLabel(118, 364, 129, 26, "| Server Daoran", false, wnd) guiLabelSetColor(lebl2, 241, 157, 11) lebl3 = guiCreateLabel(7, 316, 228, 44, "~~~~~~~~~~~~~~~~~~~~~~~~~", false, wnd) guiSetFont(lebl3, "sa-header") guiLabelSetColor(lebl3, 32, 241, 10) ----------------- -- ----------------- --------- الديبوق يقول هنا لكن والله ماعرفت كيف اصلحه for k,g in ipairs ( Wzn ) do row = guiGridListAddRow(grd) guiGridListSetItemText(grd,row,1,g[1],false,false) guiGridListSetItemColor(grd,row,1,0,255,255) end addEventHandler("onClientGUIClick",root, function () local select = guiGridListGetSelectedItem(grd) if source == btn then if select ~= -1 then if not isPedInVehicle(localPlayer) then return outputChatBox("ماتقدر تسوي وزنيه لرجليك خذ موتر اول",255,0,0,true) end setTimer(function() guiSetVisible (wnd, false) end,1000,1,true) outputChatBox(" لقـد تم اختيار الوزنية بنجاح ",0,255,0) else outputChatBox(" فضلا اختر وزنية قبل الضغط على اختيار الوزنيه ",255,255,0) end end end ) Link to comment
Max+ Posted July 16, 2014 Share Posted July 16, 2014 ------------------------ --Handl ------------------------ Wzn = { {"مسرع بشويش بلس","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"مسرع بشويش","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر العتبان","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"}, {"وزنية جنرال","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"}, {"وزنية تنطيل","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"}, {"وزنية هجولة الدائري","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"}, {"وزنية كنق التطويف","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق البحري","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"}, {"وزنية رفع 1","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية رفع 2","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية نصب","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تفجير","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية هجولة","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية دفع امامي","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"}, {"وزنية كسر الدرفت على البحر","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"}, {"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تنكيـس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الكامري","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق الياباني","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"}, } ------------------------ --Window ------------------------ wnd = guiCreateWindow(335, 136, 234, 387, "Script Handling | Server Daoran", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible( wnd, false ) guiSetProperty(wnd, "CaptionColour", "FFF2E407") btn = guiCreateButton(10, 297, 215, 35, "إختيار الوزنية", false, wnd) guiSetProperty(btn, "NormalTextColour", "FF0AF473") grd = guiCreateGridList(9, 26, 215, 251, false, wnd) col = guiGridListAddColumn(grd, "قائمة الوزنيات", 0.9) lebl1 = guiCreateLabel(33, 364, 108, 18, "By General10", false, wnd) guiLabelSetColor(lebl1, 245, 114, 8 ) lebl2 = guiCreateLabel(118, 364, 129, 26, "| Server Daoran", false, wnd) guiLabelSetColor(lebl2, 241, 157, 11) lebl3 = guiCreateLabel(7, 316, 228, 44, "~~~~~~~~~~~~~~~~~~~~~~~~~", false, wnd) guiSetFont(lebl3, "sa-header") guiLabelSetColor(lebl3, 32, 241, 10) ----------------- -- ----------------- --------- الديبوق يقول هنا لكن والله ماعرفت كيف اصلحه for k,g in ipairs ( Wzn ) do row = guiGridListAddRow(grd) guiGridListSetItemText(grd,row,1,g[1],false,false) guiGridListSetItemColor(grd,row,1,0,255,255) end addEventHandler("onClientGUIClick",root, function () local select = guiGridListGetSelectedItem(grd) if source == btn then if select ~= -1 then if not isPedInVehicle(localPlayer) then return outputChatBox("ماتقدر تسوي وزنيه لرجليك خذ موتر اول",255,0,0,true) end setTimer(function() guiSetVisible (wnd, false) end,1000,1,true) outputChatBox(" لقـد تم اختيار الوزنية بنجاح ",0,255,0) else outputChatBox(" فضلا اختر وزنية قبل الضغط على اختيار الوزنيه ",255,255,0) end end end ) غلط , + فهاوه طلعت مشكلتك بانشاء القريد مسويها غلط , . . تم التعديل مره الثالثه . انسخ الكود مره ثانية . . Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 @ Max : ممكن تفهمنا وش الغلط ؟؟ Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 ماكس كودك وخر الكولمن بروفيسور كودك يظهر الوزنيات بس وهميه يوم اضغط على الوزنيه يقول تم اختيار الوزنيه بنجاح لكن ماتجي بالموتر Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 ماكس كودك وخر الكولمن بروفيسور كودك يظهر الوزنيات بس وهميه يوم اضغط على الوزنيه يقول تم اختيار الوزنيه بنجاح لكن ماتجي بالموتر Handling ومحسب الشي سحر .. لزوم تسوي اكسبورت لسكربت Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 محد قال انه سحر بس مالي في البرمجه الا شهر ونص علمني طيب كيف اسوي اكسبورت Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 viewtopic.php?f=160&t=60569&p=577278&hilit=Handling#p577278 Link to comment
Max+ Posted July 16, 2014 Share Posted July 16, 2014 @ Max : ممكن تفهمنا وش الغلط ؟؟ اول شي لازم يستخدم guiGridListGetSelectedItem + guiGridListGetItemText + يحط resourceRoot مع حدث ضغط الزر . . Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 grd = guiCreateGridList(9, 26, 215, 251, false, wnd) شفتكـ عدلت الـ فلس الى ترو .. فـ وش سالفتها ؟؟ بالنسبة لريسورس روت فـ مهي غلط .. لاكن افضل انك تحطها . Link to comment
Max+ Posted July 16, 2014 Share Posted July 16, 2014 grd = guiCreateGridList(9, 26, 215, 251, false, wnd) شفتكـ عدلت الـ فلس الى ترو .. فـ وش سالفتها ؟؟ بالنسبة لريسورس روت فـ مهي غلط .. لاكن افضل انك تحطها . اصلا مدري وش فايدتها الفلس هنا + انا شفت نفس مثال الويكي بعمل جريد لست وطبقت عليه هنا . . Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 relative لول مو اي تشوفه تسوي زيه .. الارقمنت ذا يسمى بـ relative: This is whether sizes and positioning are relative. If this is true, then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent. لو حطيته ترو تصير الاحداثيات حق اللستة ذي بين 0 و 1 يعني كذا مثاأل guiCreateGridList( 0.10, 0.87, 0.40, 0.33, true ) فائتدها .. انه يوم تجي تسوي الشي لجميع الشاشات بيضبط معاكـ .. بس فالنفترض واحد شاشته صغيرة ولا كبيرة جدا فـ بهذي الطريقة ما تواجهك المشكلة ذي . Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 زاحف يااخي الرابط الي عطيتني ذاك مسوي مود الوزنيات مع مود B انا مسوي مود وزنيات لحاله Link to comment
#DRAGON!FIRE Posted July 16, 2014 Share Posted July 16, 2014 هو سكربت ما ادري وش نظامه الاخخوان يفيدونكـ مالي خبرة به. Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 يب لو عندك خبره بالوزنيات كان ساعدتني زي طلباتي الي اول Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 طيب الي يعرف طريقة استخدام هذا يطرحها setVehicleHandling Link to comment
nxFairlywell Posted July 16, 2014 Author Share Posted July 16, 2014 تم اصلاح المشكله بعد التعديل for k,v in ipairs(Wzn) do local row = guiGridListAddRow(grd) guiGridListSetItemText(grd,row,1,v[1],false,false) guiGridListSetItemText(grd,row,2,v[2],false,false) guiGridListSetItemData(grd,row,1,{v[2]}) guiGridListSetItemColor(grd,row,2,255,255,255) guiGridListSetItemColor(grd,row,1,255,0,0) guiSetFont(grd,"default-bold-small") end 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