[iMr]-W[i]Fi,.! Posted June 21, 2015 Share Posted June 21, 2015 (edited) سلام عليكم شخباركم انشاءالله بخخير كيفكم , رمضان مبارك عالجميع جتني مشكله بكود نبدأ بالديبوق ERROR: Loading script failed: ***\****.lua:11: ')' expected ( to close '{' at line 10) near '=' لا تفكرو *** اسم المود فقط تشفير الكود : local key = "F4" GUIEditor = { gridlist = {}, button = {}, label = {}, window = {}, } List = { Weahter[1] = "ممطر", Weahter[2] = "عاصف", Weahter[3] = "ضباب", } List2 = { Time[1] = " مشمس ", } GUIEditor.window[1] = guiCreateWindow(273, 200, 473, 465, "الجو / الوقت", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(12, 27, 204, 256, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "الجو", 3) GUIEditor.gridlist[2] = guiCreateGridList(254, 27, 204, 256, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "الوقت", 0.50) GUIEditor.button[1] = guiCreateButton(127, 324, 214, 57, "[ اخــتــيـًاْر]", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000") GUIEditor.label[1] = guiCreateLabel(219, 27, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 0, 255, 255) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) GUIEditor.label[2] = guiCreateLabel(219, 64, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-gothic") guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) GUIEditor.label[3] = guiCreateLabel(219, 138, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "sa-gothic") guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) GUIEditor.label[4] = guiCreateLabel(219, 101, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "sa-gothic") guiLabelSetColor(GUIEditor.label[4], 0, 255, 255) guiLabelSetHorizontalAlign(GUIEditor.label[4], "center", false) GUIEditor.label[5] = guiCreateLabel(219, 175, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "sa-gothic") guiLabelSetColor(GUIEditor.label[5], 0, 255, 255) guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) GUIEditor.label[6] = guiCreateLabel(219, 212, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[6], "sa-gothic") guiLabelSetHorizontalAlign(GUIEditor.label[6], "center", false) GUIEditor.label[7] = guiCreateLabel(219, 246, 35, 37, "*", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[7], "sa-gothic") guiLabelSetColor(GUIEditor.label[7], 0, 255, 255) guiLabelSetHorizontalAlign(GUIEditor.label[7], "center", false) GUIEditor.label[8] = guiCreateLabel(22, 293, 115, 18, "____________________________________________________________", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[8], "default-bold-small") GUIEditor.label[9] = guiCreateLabel(133, 293, 115, 18, "____________________________________________________________", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[9], "default-bold-small") guiLabelSetColor(GUIEditor.label[9], 255, 0, 0) GUIEditor.label[10] = guiCreateLabel(248, 293, 115, 18, "____________________________________________________________", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 0, 255, 255) GUIEditor.label[11] = guiCreateLabel(343, 293, 115, 18, "____________________________________________________________", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[11], "default-bold-small") guiLabelSetColor(GUIEditor.label[11], 0, 0, 0) GUIEditor.label[12] = guiCreateLabel(143, 411, 237, 34, "By : [iMr]-W[i]Fi,.!", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[12], "clear-normal") function black() for k, v in ipairs ( List ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, v[1], false, false) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, v[2], false, false) guiGridListSetItemData(GUIEditor.gridlist[1], row, 1, v[3]) guiGridListSetItemColor(GUIEditor.gridlist[1], row, 1, 255, 159, 0) guiGridListSetItemColor(GUIEditor.gridlist[1], row, 2, 146, 0, 255) end end setTimer (black, 3000, 1) function black1() for k, v in ipairs ( List2 ) do local row = guiGridListAddRow(GUIEditor.gridlist[2]) guiGridListSetItemText(GUIEditor.gridlist[2], row, 1, v[1], false, false) guiGridListSetItemText(GUIEditor.gridlist[2], row, 2, v[2], false, false) guiGridListSetItemData(GUIEditor.gridlist[2], row, 1, v[3]) guiGridListSetItemColor(GUIEditor.gridlist[2], row, 1, 255, 159, 0) guiGridListSetItemColor(GUIEditor.gridlist[2], row, 2, 146, 0, 255) end end setTimer (black1, 3000, 1) function Clieck() if soruce == Weahter[1] then setWeather (8) elseif soruce == Weahter[2] then setWeather(19) elseif soruce == Time[1] then setTime ( 12, 0 ) end end addEventHandler("onClientGUIClick", GUIEditor.button[1],Clieck ) و و سلام خير الختام Edited June 21, 2015 by Guest Link to comment
[iMr]-W[i]Fi,.! Posted June 21, 2015 Author Share Posted June 21, 2015 طبعا اللسته مو كامل فقط للتجربه وفيها اغغلاط Link to comment
TAPL Posted June 21, 2015 Share Posted June 21, 2015 Time + Weahter الجداول مو معرفه بعدين يفترض انك عارف انهم مو ازرار يعني ذا هريس... function Clieck() if soruce == Weahter[1] then setWeather (8) elseif soruce == Weahter[2] then setWeather(19) elseif soruce == Time[1] then setTime ( 12, 0 ) end end addEventHandler("onClientGUIClick", GUIEditor.button[1],Clieck ) اللوب الي انت مسويه كله غلط بما ان الجدول نفسه غلط Link to comment
i S6O Posted June 21, 2015 Share Posted June 21, 2015 الي فوق نصه هريسهسويت لك لوحة جديدهـ + ظبطت اكواد قريد لست باقي عليك اكواد الزر مع قريد لست local key = 'F4' -- or any key .. Weahter = { [1] = { 'ممطر' }, [2] = { 'عاصف' }, [3] = { 'ضباب' }, } Time = { [1] = { '12:00' } } HelpWiFi = { gridlist = {}, window = {}, button = {}, label = {} } HelpWiFi.window[1] = guiCreateWindow(349, 246, 367, 318, "الجوء / الوقت", false) HelpWiFi.gridlist[1] = guiCreateGridList(200, 24, 157, 191, false, HelpWiFi.window[1]) HelpWiFi.gridlist[2] = guiCreateGridList(10, 24, 169, 191, false, HelpWiFi.window[1]) HelpWiFi.button[1] = guiCreateButton(120, 219, 127, 32, "[ اخــتــيـًاْر]", false, HelpWiFi.window[1]) HelpWiFi.label[1] = guiCreateLabel(20, 254, 210, 54, "By Wifi", false, HelpWiFi.window[1]) guiSetAlpha(HelpWiFi.window[1], 0.92) guiSetVisible ( HelpWiFi.window[1],false ) guiGridListAddColumn(HelpWiFi.gridlist[1], "الجوء", 0.9) guiGridListAddColumn(HelpWiFi.gridlist[2], "الوقت", 0.9) guiSetFont(HelpWiFi.label[1], "sa-header") guiSetProperty(HelpWiFi.button[1], "NormalTextColour", "FFFF0000") -- ProGamerFunction.. function OpenWindow ( ) guiSetVisible( HelpWiFi.window[1], not guiGetVisible( HelpWiFi.window[1] ) ) showCursor( guiGetVisible ( HelpWiFi.window[1] ) ) end bindKey ( key,'down',OpenWindow ) function ShowGridList1 ( ) guiGridListClear( HelpWiFi.gridlist[1] ) for i,v in ipairs ( Weahter ) do local Row = guiGridListAddRow ( HelpWiFi.gridlist[1] ) guiGridListSetItemText ( HelpWiFi.gridlist[1], Row, 1, v [ 1 ], false, false ) guiGridListSetItemColor( HelpWiFi.gridlist[1], Row, 1, 255, 159, 0 ) end end setTimer ( ShowGridList1, 3000, 1 ) function ShowGridList2 ( ) guiGridListClear( HelpWiFi.gridlist[2] ) for i,v in ipairs ( Time ) do local Row = guiGridListAddRow ( HelpWiFi.gridlist[2] ) guiGridListSetItemText ( HelpWiFi.gridlist[2], Row, 1, v [ 1 ], false, false ) guiGridListSetItemColor( HelpWiFi.gridlist[2], Row, 1, 255, 159, 0 ) end end setTimer ( ShowGridList2, 3000, 1 ) function Check ( ) if source == HelpWiFi.button[1] then end end addEventHandler ( "onClientGUIClick", root,Check ) تنبيه : اذا فتحت اللوحة انتظر 3 ثواني وتطلع الاسماء قريد لست Link to comment
[iMr]-W[i]Fi,.! Posted June 22, 2015 Author Share Posted June 22, 2015 شكرراًً اكتشفت الاخطاء طبعا انا ما ابي اسسرق اكواد لكني بسوي اكواد جديده يغلق تمت الافادة 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