Professional Posted March 29, 2015 Share Posted March 29, 2015 يا شباب عملت لوحه انتقالات بس شو مشكلتها شوفوها --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, window = {}, staticimage = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(149, 80, 526, 441, "وزارة طرب للهجولة والاسلحة : مود الانتقالات", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 15, 507, 416, ":guieditor/images/examples/Hajola1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 18, 104, 60, "استراحة طرب", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(135, 23, 96, 55, "النخيل", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(255, 21, 99, 57, "الدائري", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(391, 24, 101, 54, "البنك", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(4, 132, 103, 48, "المطار 1", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(136, 133, 95, 47, "المطار 2", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(245, 133, 105, 47, "المطار 3", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(200, 200, 129, 75, "البدايه", false, GUIEditor.staticimage[1]) GUIEditor.button[9] = guiCreateButton(374, 132, 100, 48, "ساحة الرفع", false, GUIEditor.staticimage[1]) GUIEditor.button[10] = guiCreateButton(3, 226, 94, 49, "ساحة التفجير", false, GUIEditor.staticimage[1]) GUIEditor.button[11] = guiCreateButton(108, 227, 82, 48, "مكتب العقارات", false, GUIEditor.staticimage[1]) GUIEditor.button[12] = guiCreateButton(343, 211, 75, 50, "سلحه قتال", false, GUIEditor.staticimage[1]) GUIEditor.button[13] = guiCreateButton(425, 213, 67, 48, "المعرض", false, GUIEditor.staticimage[1]) GUIEditor.edit[1] = guiCreateEdit(0, 282, 299, 72, "جميع الحقوق محفوظة لسيرفر طرب للهجولة والحرب", false, GUIEditor.staticimage[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.button[14] = guiCreateButton(265, 149, 93, 44, "المطار 3", false, GUIEditor.window[1]) end ) bindKey ( "F6" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) ---------------------- استراحة الطرب addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then setElementPosition(localPlayer,-689.57080,949.37488,12.17489) outputChatBox("#FFFF00 | | تم نقلك الى استراحه الطرب||",255,255,255,true) end end) ---------- النخيل addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[2] then setElementPosition(localPlayer,2088.34546,960.59888,10.71577) outputChatBox("#FFFF00 | | تم نقلك الى النخيل ||",255,255,255,true) end) ------------------الدائري addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[3] then setElementPosition(localPlayer,1823.44202,872.06281,10.72149) outputChatBox("#FFFF00 | | تم نقلك الى الدائري ||",255,255,255,true) end end) -------- البنك addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[4] then setElementPosition(localPlayer,590.46967,-1241.27686,17.88795) outputChatBox("#FFFF00 | | تم نقلك الى البنك||",255,255,255,true) end end) --------- المطار addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[5] then setElementPosition(localPlayer,1800.00000,-2470.58813,13.55469) outputChatBox("#FFFF00 | | تم نقلك الى المطار 1 ||",255,255,255,true) end end) -------- المطار 2 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[6] then setElementPosition(localPlayer,1458.82349,1247.05884,10.82031) outputChatBox("#FFFF00 | | م نقلك الى المطار 2||",255,255,255,true) end end) --------- المطار 3 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[7] then setElementPosition(localPlayer,-1364.70593,0.00000,14.14844) outputChatBox("#FFFF00 | | تم نقلك الى المطار 3 ||",255,255,255,true) end end) --------- البداية addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) --------- ساحه الرفع addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) يقلي الخطا الحين unexpected symbol near ')' وكمان ما تفتح الوحه بس اضغط الضغطه بالله صححولي اياها ابي رد سرررييييع Link to comment
ALw7sH Posted March 29, 2015 Share Posted March 29, 2015 طيب سطر كم؟ مو فاضين نقرا الكود كامل وهو ماهو قصير ._. Link to comment
TAPL Posted March 29, 2015 Share Posted March 29, 2015 ناقص ايند هنا + متغيرات الأزرار و النافذه عندك غلط Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 طيب + الازرار وش وضعهم --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, window = {}, staticimage = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(149, 80, 526, 441, "وزارة طرب للهجولة والاسلحة : مود الانتقالات", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 15, 507, 416, ":guieditor/images/examples/Hajola1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 18, 104, 60, "استراحة طرب", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(135, 23, 96, 55, "النخيل", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(255, 21, 99, 57, "الدائري", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(391, 24, 101, 54, "البنك", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(4, 132, 103, 48, "المطار 1", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(136, 133, 95, 47, "المطار 2", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(245, 133, 105, 47, "المطار 3", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(200, 200, 129, 75, "البدايه", false, GUIEditor.staticimage[1]) GUIEditor.button[9] = guiCreateButton(374, 132, 100, 48, "ساحة الرفع", false, GUIEditor.staticimage[1]) GUIEditor.button[10] = guiCreateButton(3, 226, 94, 49, "ساحة التفجير", false, GUIEditor.staticimage[1]) GUIEditor.button[11] = guiCreateButton(108, 227, 82, 48, "مكتب العقارات", false, GUIEditor.staticimage[1]) GUIEditor.button[12] = guiCreateButton(343, 211, 75, 50, "سلحه قتال", false, GUIEditor.staticimage[1]) GUIEditor.button[13] = guiCreateButton(425, 213, 67, 48, "المعرض", false, GUIEditor.staticimage[1]) GUIEditor.edit[1] = guiCreateEdit(0, 282, 299, 72, "جميع الحقوق محفوظة لسيرفر طرب للهجولة والحرب", false, GUIEditor.staticimage[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.button[14] = guiCreateButton(265, 149, 93, 44, "المطار 3", false, GUIEditor.window[1]) end ) bindKey ( "F6" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) ---------------------- استراحة الطرب addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then setElementPosition(localPlayer,-689.57080,949.37488,12.17489) outputChatBox("#FFFF00 | | تم نقلك الى استراحه الطرب||",255,255,255,true) end end) ---------- النخيل addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[2] then setElementPosition(localPlayer,2088.34546,960.59888,10.71577) outputChatBox("#FFFF00 | | تم نقلك الى النخيل ||",255,255,255,true) end end) ------------------الدائري addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[3] then setElementPosition(localPlayer,1823.44202,872.06281,10.72149) outputChatBox("#FFFF00 | | تم نقلك الى الدائري ||",255,255,255,true) end end) -------- البنك addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[4] then setElementPosition(localPlayer,590.46967,-1241.27686,17.88795) outputChatBox("#FFFF00 | | تم نقلك الى البنك||",255,255,255,true) end end) --------- المطار addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[5] then setElementPosition(localPlayer,1800.00000,-2470.58813,13.55469) outputChatBox("#FFFF00 | | تم نقلك الى المطار 1 ||",255,255,255,true) end end) -------- المطار 2 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[6] then setElementPosition(localPlayer,1458.82349,1247.05884,10.82031) outputChatBox("#FFFF00 | | م نقلك الى المطار 2||",255,255,255,true) end end) --------- المطار 3 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[7] then setElementPosition(localPlayer,-1364.70593,0.00000,14.14844) outputChatBox("#FFFF00 | | تم نقلك الى المطار 3 ||",255,255,255,true) end end) --------- البداية addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) --------- ساحه الرفع addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) Link to comment
TAPL Posted March 29, 2015 Share Posted March 29, 2015 GUIEditor.window[1] GUIEditor_Window[1] GUIEditor.button[1] GUIEditor_Button[1] تشوف الفرق؟ Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 كذا يصير ؟ --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, window = {}, staticimage = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(149, 80, 526, 441, "وزارة طرب للهجولة والاسلحة : مود الانتقالات", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 15, 507, 416, ":guieditor/images/examples/Hajola1.png", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(8, 18, 104, 60, "استراحة طرب", false, GUIEditor.staticimage[1]) GUIEditor.button[2] = guiCreateButton(135, 23, 96, 55, "النخيل", false, GUIEditor.staticimage[1]) GUIEditor.button[3] = guiCreateButton(255, 21, 99, 57, "الدائري", false, GUIEditor.staticimage[1]) GUIEditor.button[4] = guiCreateButton(391, 24, 101, 54, "البنك", false, GUIEditor.staticimage[1]) GUIEditor.button[5] = guiCreateButton(4, 132, 103, 48, "المطار 1", false, GUIEditor.staticimage[1]) GUIEditor.button[6] = guiCreateButton(136, 133, 95, 47, "المطار 2", false, GUIEditor.staticimage[1]) GUIEditor.button[7] = guiCreateButton(245, 133, 105, 47, "المطار 3", false, GUIEditor.staticimage[1]) GUIEditor.button[8] = guiCreateButton(200, 200, 129, 75, "البدايه", false, GUIEditor.staticimage[1]) GUIEditor.button[9] = guiCreateButton(374, 132, 100, 48, "ساحة الرفع", false, GUIEditor.staticimage[1]) GUIEditor.button[10] = guiCreateButton(3, 226, 94, 49, "ساحة التفجير", false, GUIEditor.staticimage[1]) GUIEditor.button[11] = guiCreateButton(108, 227, 82, 48, "مكتب العقارات", false, GUIEditor.staticimage[1]) GUIEditor.button[12] = guiCreateButton(343, 211, 75, 50, "سلحه قتال", false, GUIEditor.staticimage[1]) GUIEditor.button[13] = guiCreateButton(425, 213, 67, 48, "المعرض", false, GUIEditor.staticimage[1]) GUIEditor.edit[1] = guiCreateEdit(0, 282, 299, 72, "جميع الحقوق محفوظة لسيرفر طرب للهجولة والحرب", false, GUIEditor.staticimage[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.button[14] = guiCreateButton(265, 149, 93, 44, "المطار 3", false, GUIEditor.window[1]) end ) bindKey ( "F6" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor.button[1] ) == false ) then guiSetVisible ( GUIEditor_Button[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) ---------------------- استراحة الطرب addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then setElementPosition(localPlayer,-689.57080,949.37488,12.17489) outputChatBox("#FFFF00 | | تم نقلك الى استراحه الطرب||",255,255,255,true) end end) ---------- النخيل addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[2] then setElementPosition(localPlayer,2088.34546,960.59888,10.71577) outputChatBox("#FFFF00 | | تم نقلك الى النخيل ||",255,255,255,true) end end) ------------------الدائري addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[3] then setElementPosition(localPlayer,1823.44202,872.06281,10.72149) outputChatBox("#FFFF00 | | تم نقلك الى الدائري ||",255,255,255,true) end end) -------- البنك addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[4] then setElementPosition(localPlayer,590.46967,-1241.27686,17.88795) outputChatBox("#FFFF00 | | تم نقلك الى البنك||",255,255,255,true) end end) --------- المطار addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[5] then setElementPosition(localPlayer,1800.00000,-2470.58813,13.55469) outputChatBox("#FFFF00 | | تم نقلك الى المطار 1 ||",255,255,255,true) end end) -------- المطار 2 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[6] then setElementPosition(localPlayer,1458.82349,1247.05884,10.82031) outputChatBox("#FFFF00 | | م نقلك الى المطار 2||",255,255,255,true) end end) --------- المطار 3 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[7] then setElementPosition(localPlayer,-1364.70593,0.00000,14.14844) outputChatBox("#FFFF00 | | تم نقلك الى المطار 3 ||",255,255,255,true) end end) --------- البداية addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) --------- ساحه الرفع addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) Link to comment
TAPL Posted March 29, 2015 Share Posted March 29, 2015 انت اضفت الأند الناقص بس ما عدلت اسم المتغيرات الي هي تبدأ من سطر 46 لين آخر سطر elseif و يفضل تستخدم الأفنت حق الضغط على زر مره وحده و تستخدم Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 لسا ما طقست الطقسه كان مشتغل المود وشوف التخبيص Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 شوف المشكله الحين ERROR:Loading script failed: bod\Client.lua:56 '=' expected near 'end' Link to comment
Bassam*Syria Posted March 29, 2015 Share Posted March 29, 2015 شوف المشكله الحينERROR:Loading script failed: bod\Client.lua:56 '=' expected near 'end' اول شي السلام عليكم ثاني شي انتبه على الفنكش و ترتيبه انت ضايف بالسطر 56 اند زياده elseif ما يلزم اند ل ذي المهم تفضل --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { button = {}, window = {}, staticimage = {}, edit = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(149, 80, 526, 441, "وزارة طرب للهجولة والاسلحة : مود الانتقالات", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.button[1] = guiCreateButton(8, 18, 104, 60, "استراحة طرب", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(135, 23, 96, 55, "النخيل", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(255, 21, 99, 57, "الدائري", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(391, 24, 101, 54, "البنك", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(4, 132, 103, 48, "المطار 1", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(136, 133, 95, 47, "المطار 2", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(245, 133, 105, 47, "المطار 3", false, GUIEditor.window[1]) GUIEditor.button[8] = guiCreateButton(200, 200, 129, 75, "البدايه", false, GUIEditor.window[1]) GUIEditor.button[9] = guiCreateButton(374, 132, 100, 48, "ساحة الرفع", false, GUIEditor.window[1]) GUIEditor.button[10] = guiCreateButton(3, 226, 94, 49, "ساحة التفجير", false, GUIEditor.window[1]) GUIEditor.button[11] = guiCreateButton(108, 227, 82, 48, "مكتب العقارات", false, GUIEditor.window[1])]) GUIEditor.button[12] = guiCreateButton(343, 211, 75, 50, "سلحه قتال", false, GUIEditor.window[1]) GUIEditor.button[13] = guiCreateButton(425, 213, 67, 48, "المعرض", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(0, 282, 299, 72, "جميع الحقوق محفوظة لسيرفر طرب للهجولة والحرب", false, GUIEditor.staticimage[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.button[14] = guiCreateButton(265, 149, 93, 44, "المطار 3", false, GUIEditor.window[1]) end ) bindKey ( "F6" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor ( false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor.button[1] ) == false ) then guiSetVisible ( GUIEditor_Button[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end ) ---------------------- استراحة الطرب addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[1] then setElementPosition(localPlayer,-689.57080,949.37488,12.17489) outputChatBox("#FFFF00 | | تم نقلك الى استراحه الطرب||",255,255,255,true) end end) ---------- النخيل addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[2] then setElementPosition(localPlayer,2088.34546,960.59888,10.71577) outputChatBox("#FFFF00 | | تم نقلك الى النخيل ||",255,255,255,true) end end) ------------------الدائري addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[3] then setElementPosition(localPlayer,1823.44202,872.06281,10.72149) outputChatBox("#FFFF00 | | تم نقلك الى الدائري ||",255,255,255,true) end end) -------- البنك addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[4] then setElementPosition(localPlayer,590.46967,-1241.27686,17.88795) outputChatBox("#FFFF00 | | تم نقلك الى البنك||",255,255,255,true) end end) --------- المطار addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[5] then setElementPosition(localPlayer,1800.00000,-2470.58813,13.55469) outputChatBox("#FFFF00 | | تم نقلك الى المطار 1 ||",255,255,255,true) end end) -------- المطار 2 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[6] then setElementPosition(localPlayer,1458.82349,1247.05884,10.82031) outputChatBox("#FFFF00 | | م نقلك الى المطار 2||",255,255,255,true) end end) --------- المطار 3 addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[7] then setElementPosition(localPlayer,-1364.70593,0.00000,14.14844) outputChatBox("#FFFF00 | | تم نقلك الى المطار 3 ||",255,255,255,true) end end) --------- البداية addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) --------- ساحه الرفع addEventHandler("onClientGUIClick", root, function (button, state, absoluteX, absoluteY) if source == GUIEditor_Button[8] then setElementPosition(localPlayer,831.39789,-1967.23193,12.86719) outputChatBox("#FFFF00 | | تم نقلك الى البداية||",255,255,255,true) end end) Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 اخي شوف الاغلاط unexpected symbol near ']' Line = 32 '' expected near 'end' Line = 39 unexpected symbol near ')' Line= 40 unexpected symbol near ')' Line = 57 Link to comment
Bassam*Syria Posted March 29, 2015 Share Posted March 29, 2015 اخوي انا الحين انتبهت انت مخرب كثير اشياء مثل اسامي الازرار و تعرفيهم و الفنكشنات حمل المود ذا https://community.multitheftauto.com/in ... ls&id=7944 وشوفه مثل ما نت تبي Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 يخي ما راح ينجح معي شيئ جربت ما نجح Link to comment
Bassam*Syria Posted March 29, 2015 Share Posted March 29, 2015 يخي ما راح ينجح معي شيئجربت ما نجح عشان كذا ما ينح معاك عشان تبرمج وتعرف انه ما يصير تفائل بالخير Link to comment
Professional Posted March 29, 2015 Author Share Posted March 29, 2015 انا عارف اعمل سكربتات سهله بس ابي انا اعرف كل شيئ كل شيئ ما ينقص شو سكربتات بدون اساسياتها Link to comment
Bassam*Syria Posted March 29, 2015 Share Posted March 29, 2015 انا عارف اعمل سكربتات سهله بس ابي انا اعرف كل شيئ كل شيئ ما ينقص شو سكربتات بدون اساسياتها لما تسوي سكربت ب لوحه انتبه على اسامي الازرار و تعرريفاتها يعني مثال GUIEditor_Button[1] = guiCreateButton(17,82,152,58,"اغلاق",false,GUIEditor_Window[1]) GUIEditor_Button[1] = اسم الزر GUIEditor_Window[1] = اسم الوحه لما تبي تعرفها مثال تبي لما يضغت الزر تتسكر الوحه addEventHandler("onClientGUIClick",root, function () if source == GUIEditor_Button[2] then guiSetVisible(GUIEditor_Window[1],false) showCursor(false) end end) if = اذ then = اذاً end = انهاء الفنكشن if source == GUIEditor_Button[2] then يعني ذي تصير اذ ضعط الزر اذاً اذاً تفيد بتعريف الحد الامر الي يتفعل guiSetVisible(GUIEditor_Window[1],false) = تسكير الوحه showCursor(false) = اخفاء الماوس يعني كامل يصير اذ الاعب ضغط الزر اذاً تغلق الوحه و اخفاء الماوس انهاء ================================================== مع كل if تحتاج end ====================================================== بالمثال موجود 2 اند و قوس الاند1 تفيد ب اغلاق الفنكشن الاند 2 تفيد ب اغلاق الاف القوس يفيد ب انهاء الامر addEventHandler("onClientGUIClick",root, اتمنا تكون فهمت شي Link to comment
yazan Posted March 29, 2015 Share Posted March 29, 2015 شوف المشكله الحينERROR:Loading script failed: bod\Client.lua:56 '=' expected near 'end' اول شي السلام عليكم ثاني شي انتبه على الفنكش و ترتيبه انت ضايف بالسطر 56 اند زياده elseif ما يلزم اند ل ذي المهم تفضل [lua] GUIEditor = { button = {}, window = {}, staticimage = {}, edit = {} } GUIEditor.edit[1] = guiCreateEdit(0, 282, 299, 72, "جميع الحقوق محفوظة لسيرفر طرب للهجولة والحرب", false, GUIEditor.staticimage[1]) elseif ( guiGetVisible ( GUIEditor.button[1] ) == false ) then guiSetVisible ( GUIEditor_Button[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end ) شوف اخطاء لو تعمل لك لوحة ثانيه من جديد و ترتب المود من اول ما يحتاج شي و اذا ما قدرت تكمل اطرح يلي وصلت له Link to comment
*[MSN]MHMD Posted March 30, 2015 Share Posted March 30, 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