[iMr]-W[i]Fi,.! Posted May 14, 2015 Share Posted May 14, 2015 سلام عليكم شخباركم يعيال انشاءالله بخير زي ما شايفين الموضوع ابي احد يكشف شو الحل اضيفه ما ابي احد يبي يخزيني او يحرجني المهم الكود function drawPlay() dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط³ظƒط±ط¨طھ ط§ظ„ظ‚ظˆط§ظ†ظٹظ† , ظ…ط·ظˆط± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط³ط¨ ظˆ ط´طھظ… = ظ…ظٹظˆطھ 10 ط¯ظ‚ط§ط¦ظ‚", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„ظ†ط´ط± = ط¨ط§ظ†ط¯ ظ…ط¤ط¨ط¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¹ط¯ظ… ظ…ط³ط§ط¹ط¯ط© ط§ظ„ط²ظˆط§ط± = ط³طط¨ ط§ظ„ط±طھط¨ظ‡", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„ط¹ظ†طµط±ظٹط© ط§ظˆ ط§ظ„طھظƒط¨ط± = ظ…ظٹظˆطھ 30 ط¯ظ‚ظٹظ‚ظ‡", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·ظ„ط¨ ط±طھط¨ظ‡ = ظ…ظٹظˆطھ 10 ط¯ظ‚ط§ط¦ظ‚", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„طھظ‡ط¯ظٹط¯ = ط§ظ„ظ‚ط±ط§ط± ط¨ظٹط¯ ط§ظ„ظƒظˆظ†ط³ظ„", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„طھظ‡ط§ظˆط´ ط¨ظٹظ† ط§ط¯ظ…ظ†ظٹظ† = ط³طط¨ ط±طھط¨ظ‡ظ… ط§ظ„ط§ط«ظ†ظٹظ†ظ‡ظ…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) end ) bindKey ("F10", "down", function draw() if ( draw == false ) then addEventHandler("onClientRender", root, drawPlay) addEventHandler("onClientRender", root, move) addEventHandler("onClientClick", root, click) addEventHandler("onClientCursorMove", root, mouse) showCursor ( true ) draw = true else removeEventHandler("onClientRender", root, drawPlay) removeEventHandler("onClientRender", root, move) removeEventHandler("onClientClick", root, click) removeEventHandler("onClientCursorMove", root, mouse) showCursor ( false ) draw = false end end ) guiSetVisible(GUIEditor.button[1],ture) addEventHandler("onClientClick", root, function() if source == GUIEditor.button[1] then guiSetVisible (drawPlay , false) guiSetVisible (GUIEditor.button[1] , false) guiSetVisible (draw1 ,true) guiSetVisible (GUIEditor.button[2] ,true) end end ) addEventHandler("onClientRender", root, function draw1 () dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط³ظƒط±ط¨طھ ط§ظ„ظ‚ظˆط§ظ†ظٹظ† , ظ…ط·ظˆط± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ظ„ظ„ططµظˆظ„ ط¹ظ„ظ‰ ط§ظ„ط±طھط¨ظ‡ ط·ط¨ظ‚ ظ…ط§ ظٹظ„ظٹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ†ط´ط± ط§ظ„ط³ظٹط±ظپط±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ…ط³ط§ط¹ط¯ط© ط§ظ„ط²ظˆط§ط± ظˆط§ظ„ظ…ططھط§ط¬ظٹظ†", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ…ط±ط§ظ‚ط¨ظ‡ ط§ظ„ط´ط§طھ", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end ) addEventHandler("onClientClick", root, function() if source == GUIEditor.button[2] then guiSetVisible (drawPlay , true) guiSetVisible (GUIEditor.button[1] , true) guiSetVisible (draw1 ,false) guiSetVisible (GUIEditor.button[2] ,false) end end ) GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط§ظ„طھط§ظ„ظٹ", false) GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط§ظ„ط³ط§ط¨ظ‚", false) خليت بعض الكلمات العربيه مهي مفهومه لانه ما حد يزرف اكوادي ~ رد سريع يا اخواني اما بنسبه لل مشكله يجي في ديبق Erorr : dxnew\DX.lua:2:.'('expatected near darwPlay Link to comment
</Mr.Tn6eL> Posted May 14, 2015 Share Posted May 14, 2015 (edited) سطر 36 Edited May 14, 2015 by Guest Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 سطر 36 نفس المشكله ~ المشكله تتكلم عن drawPlay Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 Erorr : dxnew\DX.lua:2:.'('expatected near darwPlay Link to comment
ALw7sH Posted May 14, 2015 Share Posted May 14, 2015 function drawPlay() dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط³ظƒط±ط¨طھ ط§ظ„ظ‚ظˆط§ظ†ظٹظ† , ظ…ط·ظˆط± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط³ط¨ ظˆ ط´طھظ… = ظ…ظٹظˆطھ 10 ط¯ظ‚ط§ط¦ظ‚", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„ظ†ط´ط± = ط¨ط§ظ†ط¯ ظ…ط¤ط¨ط¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¹ط¯ظ… ظ…ط³ط§ط¹ط¯ط© ط§ظ„ط²ظˆط§ط± = ط³طط¨ ط§ظ„ط±طھط¨ظ‡", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„ط¹ظ†طµط±ظٹط© ط§ظˆ ط§ظ„طھظƒط¨ط± = ظ…ظٹظˆطھ 30 ط¯ظ‚ظٹظ‚ظ‡", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·ظ„ط¨ ط±طھط¨ظ‡ = ظ…ظٹظˆطھ 10 ط¯ظ‚ط§ط¦ظ‚", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„طھظ‡ط¯ظٹط¯ = ط§ظ„ظ‚ط±ط§ط± ط¨ظٹط¯ ط§ظ„ظƒظˆظ†ط³ظ„", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„طھظ‡ط§ظˆط´ ط¨ظٹظ† ط§ط¯ظ…ظ†ظٹظ† = ط³طط¨ ط±طھط¨ظ‡ظ… ط§ظ„ط§ط«ظ†ظٹظ†ظ‡ظ…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) end bindKey ("F10", "down", function draw() if ( draw == false ) then addEventHandler("onClientRender", root, drawPlay) addEventHandler("onClientRender", root, move) addEventHandler("onClientClick", root, click) addEventHandler("onClientCursorMove", root, mouse) showCursor ( true ) draw = true else removeEventHandler("onClientRender", root, drawPlay) removeEventHandler("onClientRender", root, move) removeEventHandler("onClientClick", root, click) removeEventHandler("onClientCursorMove", root, mouse) showCursor ( false ) draw = false end end ) guiSetVisible(GUIEditor.button[1],ture) addEventHandler("onClientClick", root, function() if source == GUIEditor.button[1] then guiSetVisible (drawPlay , false) guiSetVisible (GUIEditor.button[1] , false) guiSetVisible (draw1 ,true) guiSetVisible (GUIEditor.button[2] ,true) end end ) addEventHandler("onClientRender", root, function draw1 () dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط³ظƒط±ط¨طھ ط§ظ„ظ‚ظˆط§ظ†ظٹظ† , ظ…ط·ظˆط± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ظ„ظ„ططµظˆظ„ ط¹ظ„ظ‰ ط§ظ„ط±طھط¨ظ‡ ط·ط¨ظ‚ ظ…ط§ ظٹظ„ظٹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ†ط´ط± ط§ظ„ط³ظٹط±ظپط±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ…ط³ط§ط¹ط¯ط© ط§ظ„ط²ظˆط§ط± ظˆط§ظ„ظ…ططھط§ط¬ظٹظ†", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ…ط±ط§ظ‚ط¨ظ‡ ط§ظ„ط´ط§طھ", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end ) addEventHandler("onClientClick", root, function() if source == GUIEditor.button[2] then guiSetVisible (drawPlay , true) guiSetVisible (GUIEditor.button[1] , true) guiSetVisible (draw1 ,false) guiSetVisible (GUIEditor.button[2] ,false) end end ) GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط§ظ„طھط§ظ„ظٹ", false) GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط§ظ„ط³ط§ط¨ظ‚", false) الكود كذا المفروض يشتغل بس بعد الكود فيه اخطاء على فنكشنات guiSetVisible أنك تستخدم فنكشن Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 طيب أخوي الوحش ممكن تعطيني كود لو ضغطت الزر يخفي الزر و الفنكشن Drawplay ويظهر زر بوتن 2 وفنكشن draw1 بعدين ويسير بوتن2 يظهر بوتن 1 وفنكشن drawPlaY ويختفي بوتن 2 Link to comment
i S6O Posted May 14, 2015 Share Posted May 14, 2015 (edited) function drawPlay ( ) dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط³ظƒط±ط¨طھ ط§ظ„ظ‚ظˆط§ظ†ظٹظ† , ظ…ط·ظˆط± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط³ط¨ ظˆ ط´طھظ… = ظ…ظٹظˆطھ 10 ط¯ظ‚ط§ط¦ظ‚", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„ظ†ط´ط± = ط¨ط§ظ†ط¯ ظ…ط¤ط¨ط¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¹ط¯ظ… ظ…ط³ط§ط¹ط¯ط© ط§ظ„ط²ظˆط§ط± = ط³طط¨ ط§ظ„ط±طھط¨ظ‡", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„ط¹ظ†طµط±ظٹط© ط§ظˆ ط§ظ„طھظƒط¨ط± = ظ…ظٹظˆطھ 30 ط¯ظ‚ظٹظ‚ظ‡", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·ظ„ط¨ ط±طھط¨ظ‡ = ظ…ظٹظˆطھ 10 ط¯ظ‚ط§ط¦ظ‚", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„طھظ‡ط¯ظٹط¯ = ط§ظ„ظ‚ط±ط§ط± ط¨ظٹط¯ ط§ظ„ظƒظˆظ†ط³ظ„", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط§ظ„طھظ‡ط§ظˆط´ ط¨ظٹظ† ط§ط¯ظ…ظ†ظٹظ† = ط³طط¨ ط±طھط¨ظ‡ظ… ط§ظ„ط§ط«ظ†ظٹظ†ظ‡ظ…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) end function draw1 ( ) dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط³ظƒط±ط¨طھ ط§ظ„ظ‚ظˆط§ظ†ظٹظ† , ظ…ط·ظˆط± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ظ„ظ„ططµظˆظ„ ط¹ظ„ظ‰ ط§ظ„ط±طھط¨ظ‡ ط·ط¨ظ‚ ظ…ط§ ظٹظ„ظٹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ†ط´ط± ط§ظ„ط³ظٹط±ظپط±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ…ط³ط§ط¹ط¯ط© ط§ظ„ط²ظˆط§ط± ظˆط§ظ„ظ…ططھط§ط¬ظٹظ†", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ظ…ط±ط§ظ‚ط¨ظ‡ ط§ظ„ط´ط§طھ", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end removeEventHandler ( "onClientRander",root,draw1 ) bindKey ("F10", "down", Open ) function Open ( ) if ( removeEventHandler ( "onClientRender",root,draw1 ) ) then removeEventHandler ( "onClientRender",root,draw1 ) removeEventHandler ( "onClientRender",root,drawPlay ) showCursor ( false ) else addEventHandler("onClientRender", root, drawPlay) addEventHandler("onClientRender", root, draw1) showCursor ( true ) end end function Buttons ( ) if source == GUIEditor.button[1] then removeEventHandler ( "onClientRender",root,drawPlay ) addEventHandler ( "onClientRender",root,draw1 ) guiSetVisible ( GUIEditor.button[1],false ) guiSetVisible ( GUIEditor.button[2],true ) elseif source == GUIEditor.button[2] then addEventHandler ( "onClientRender",root,drawPlay ) removeEventHandler ( "onClientRender",root,draw1 ) guiSetVisible ( GUIEditor.button[1],true ) guiSetVisible ( GUIEditor.button[1],false ) end end addEventHandler ( "onClientGUIClick",root,Buttons ) GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط§ظ„طھط§ظ„ظٹ", false) GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط§ظ„ط³ط§ط¨ظ‚", false) مافهمت قصدك يمكن تقصد كذا جرب فوق ؟ Edited May 14, 2015 by Guest Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 انا أقصد يوم يضغط الزر يفتح فنكشن Draw1 او العكس Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 اسمع ابيك ترسلي من جديد اكوادك بدون استعمال [lua][lua] عشان اقدر انسخها لو نسختها كذا ما يشتغل صح Link to comment
i S6O Posted May 14, 2015 Share Posted May 14, 2015 اسمع ابيك ترسلي من جديد اكوادك بدون استعمال [lua][lua]عشان اقدر انسخها لو نسختها كذا ما يشتغل صح بس سو line number on/off > select all > Ctrl + C Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 نفس المشكله اخوي Link to comment
' A F . Posted May 14, 2015 Share Posted May 14, 2015 addEventHandler -- onClientRender removeEventHandler -- onClientRender Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 يصير كذا يا برو قيمر function () if source == GUIEditor.button[1] then addEventHandler ( "onClientRender",root,drawPlay ) removeEventHandler ( "onClientRender",root,draw1 ) guiSetVisible(GUIEditor.button[1] , false) guiSetVisible ( GUIEditor.button[2],true ) elseif source == GUIEditor.button[2] then removeEventHandler ( "onClientRender",root,drawPlay ) addEventHandler ( "onClientRender",root,draw1 ) guiSetVisible(GUIEditor.button[1] , true) guiSetVisible ( GUIEditor.button[2], false) end end ) اضنها شبيها ب حق ابو عابد Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 نآقصك end وين احط الاند Link to comment
Simple. Posted May 14, 2015 Share Posted May 14, 2015 نآقصك end وين احط الاند سؤآلك صعب حطها آخر شيء تحد الإند الآولى او الثانيه Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 ما زبط شوف الديبوق ERROR: Loading script failed: dxnew\DX.lua:2: '(' expected near 'drawPlay' Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 function drawPlay ( ) dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€ط¸â€ڑط¸ث†ط·آ§ط¸†ط¸ظ¹ط¸† , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط·آ³ط·آ¨ ط¸ث† ط·آ´ط·ع¾ط¸… = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط¸†ط·آ´ط·آ± = ط·آ¨ط·آ§ط¸†ط·آ¯ ط¸…ط·آ¤ط·آ¨ط·آ¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ¹ط·آ¯ط¸… ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€ط·آ²ط¸ث†ط·آ§ط·آ± = ط·آ³ط·آط·آ¨ ط·آ§ط¸â€ط·آ±ط·ع¾ط·آ¨ط¸â€،", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط·آ¹ط¸†ط·آµط·آ±ط¸ظ¹ط·آ© ط·آ§ط¸ث† ط·آ§ط¸â€ط·ع¾ط¸ئ’ط·آ¨ط·آ± = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 30 ط·آ¯ط¸â€ڑط¸ظ¹ط¸â€ڑط¸â€،", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ·ط¸â€ط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€، = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط·ع¾ط¸â€،ط·آ¯ط¸ظ¹ط·آ¯ = ط·آ§ط¸â€ط¸â€ڑط·آ±ط·آ§ط·آ± ط·آ¨ط¸ظ¹ط·آ¯ ط·آ§ط¸â€ط¸ئ’ط¸ث†ط¸†ط·آ³ط¸â€", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط·ع¾ط¸â€،ط·آ§ط¸ث†ط·آ´ ط·آ¨ط¸ظ¹ط¸† ط·آ§ط·آ¯ط¸…ط¸†ط¸ظ¹ط¸† = ط·آ³ط·آط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€،ط¸… ط·آ§ط¸â€ط·آ§ط·آ«ط¸†ط¸ظ¹ط¸†ط¸â€،ط¸…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) end function draw1 ( ) dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€ط¸â€ڑط¸ث†ط·آ§ط¸†ط¸ظ¹ط¸† , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط¸â€ط¸â€ط·آط·آµط¸ث†ط¸â€ ط·آ¹ط¸â€ط¸‰ ط·آ§ط¸â€ط·آ±ط·ع¾ط·آ¨ط¸â€، ط·آ·ط·آ¨ط¸â€ڑ ط¸…ط·آ§ ط¸ظ¹ط¸â€ط¸ظ¹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¸†ط·آ´ط·آ± ط·آ§ط¸â€ط·آ³ط¸ظ¹ط·آ±ط¸ظ¾ط·آ±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€ط·آ²ط¸ث†ط·آ§ط·آ± ط¸ث†ط·آ§ط¸â€ط¸…ط·آط·ع¾ط·آ§ط·آ¬ط¸ظ¹ط¸†", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¸…ط·آ±ط·آ§ط¸â€ڑط·آ¨ط¸â€، ط·آ§ط¸â€ط·آ´ط·آ§ط·ع¾", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end removeEventHandler ( "onClientRander",root,draw1 ) bindKey ("F10", "down", Open ) function Open ( ) if removeEventHandler ( "onClientRender", root,draw1 ) then removeEventHandler ( "onClientRander", root,drawPlay) showCursor ( false ) elseif addEventHandler ("onClientRender", root, drawPlay) then addEventHandler ("onClientRander", root , draw1) showCursor ( true ) end end function Buttons () if source == GUIEditor.button[1] then addEventHandler ( "onClientRender",root,drawPlay ) removeEventHandler ( "onClientRender",root,draw1 ) guiSetVisible(GUIEditor.button[1] , false) guiSetVisible ( GUIEditor.button[2],true ) elseif source == GUIEditor.button[2] then removeEventHandler ( "onClientRender",root,drawPlay ) addEventHandler ( "onClientRender",root,draw1 ) guiSetVisible(GUIEditor.button[1] , true) guiSetVisible ( GUIEditor.button[2], false) end end end addEventHandler ( "onClientGUIClick",root,Buttons ) GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€ط·ع¾ط·آ§ط¸â€ط¸ظ¹", false) GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€ط·آ³ط·آ§ط·آ¨ط¸â€ڑ", false) ذي النتيجه بعد التعديل Link to comment
[iMr]-W[i]Fi,.! Posted May 14, 2015 Author Share Posted May 14, 2015 سطر 95 addEventHandler ( "onClientGUIClick",root,Buttons ) وين الاند Link to comment
N3xT Posted May 14, 2015 Share Posted May 14, 2015 function drawPlay ( ) dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€ط¸â€ڑط¸ث†ط·آ§ط¸â€ ط¸ظ¹ط¸â€ , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط·آ³ط·آ¨ ط¸ث† ط·آ´ط·ع¾ط¸… = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 306, 210, 449, 226, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط¸â€ ط·آ´ط·آ± = ط·آ¨ط·آ§ط¸â€ ط·آ¯ ط¸…ط·آ¤ط·آ¨ط·آ¯", 333, 236, 476, 252, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 481, 206, 624, 233, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 433, 235, 576, 262, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ¹ط·آ¯ط¸… ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€ط·آ²ط¸ث†ط·آ§ط·آ± = ط·آ³ط·آط·آ¨ ط·آ§ط¸â€ط·آ±ط·ع¾ط·آ¨ط¸â€،", 280, 262, 423, 278, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-4", 486, 294, 629, 321, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط·آ¹ط¸â€ ط·آµط·آ±ط¸ظ¹ط·آ© ط·آ§ط¸ث† ط·آ§ط¸â€ط·ع¾ط¸ئ’ط·آ¨ط·آ± = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 30 ط·آ¯ط¸â€ڑط¸ظ¹ط¸â€ڑط¸â€،", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ·ط¸â€ط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€، = ط¸…ط¸ظ¹ط¸ث†ط·ع¾ 10 ط·آ¯ط¸â€ڑط·آ§ط·آ¦ط¸â€ڑ", 338, 370, 481, 386, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط·ع¾ط¸â€،ط·آ¯ط¸ظ¹ط·آ¯ = ط·آ§ط¸â€ط¸â€ڑط·آ±ط·آ§ط·آ± ط·آ¨ط¸ظ¹ط·آ¯ ط·آ§ط¸â€ط¸ئ’ط¸ث†ط¸â€ ط·آ³ط¸â€", 328, 331, 471, 347, tocolor(163, 157, 0, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-6", 496, 369, 639, 396, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-5", 486, 333, 629, 360, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط·آ§ط¸â€ط·ع¾ط¸â€،ط·آ§ط¸ث†ط·آ´ ط·آ¨ط¸ظ¹ط¸â€ ط·آ§ط·آ¯ط¸…ط¸â€ ط¸ظ¹ط¸â€ = ط·آ³ط·آط·آ¨ ط·آ±ط·ع¾ط·آ¨ط¸â€،ط¸… ط·آ§ط¸â€ط·آ§ط·آ«ط¸â€ ط¸ظ¹ط¸â€ ط¸â€،ط¸…", 268, 402, 411, 418, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-7", 515, 396, 658, 423, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(224, 245, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(224, 245, 0, 255), 2, true) end function draw1 ( ) dxDrawLine(358, 454, 358, 480, tocolor(255, 255, 255, 255), 2, true) dxDrawImage(267, 163, 258, 23, "S1.png", 0, 0, 0, tocolor(23, 28, 142, 255), true) dxDrawLine(267, 163, 524, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(268, 197, 525, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(267, 185, 267, 163, tocolor(23, 87, 141, 255), 4, true) dxDrawText("=|ط·آ³ط¸ئ’ط·آ±ط·آ¨ط·ع¾ ط·آ§ط¸â€ط¸â€ڑط¸ث†ط·آ§ط¸â€ ط¸ظ¹ط¸â€ , ط¸…ط·آ·ط¸ث†ط·آ± DX |=", 282, 163, 501, 185, tocolor(255, 255, 255, 255), 1, "default", "center", "top", true, false, true, false, false) dxDrawLine(267, 186, 524, 185, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 197, 531, 196, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 196, 259, 498, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(535, 196, 536, 504, tocolor(23, 87, 141, 255), 4, true) dxDrawLine(258, 500, 532, 500, tocolor(23, 87, 141, 255), 4, true) dxDrawImage(258, 196, 0, 0, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(261, 201, 272, 297, "S1.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("ط¸â€ط¸â€ط·آط·آµط¸ث†ط¸â€ ط·آ¹ط¸â€ط¸‰ ط·آ§ط¸â€ط·آ±ط·ع¾ط·آ¨ط¸â€، ط·آ·ط·آ¨ط¸â€ڑ ط¸…ط·آ§ ط¸ظ¹ط¸â€ط¸ظ¹ :-", 300, 207, 443, 223, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¸â€ ط·آ´ط·آ± ط·آ§ط¸â€ط·آ³ط¸ظ¹ط·آ±ط¸ظ¾ط·آ±", 339, 236, 482, 252, tocolor(23, 87, 141, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¸…ط·آ³ط·آ§ط·آ¹ط·آ¯ط·آ© ط·آ§ط¸â€ط·آ²ط¸ث†ط·آ§ط·آ± ط¸ث†ط·آ§ط¸â€ط¸…ط·آط·ع¾ط·آ§ط·آ¬ط¸ظ¹ط¸â€ ", 305, 263, 448, 279, tocolor(161, 84, 1, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("ط¸…ط·آ±ط·آ§ط¸â€ڑط·آ¨ط¸â€، ط·آ§ط¸â€ط·آ´ط·آ§ط·ع¾", 290, 293, 433, 309, tocolor(163, 0, 0, 255), 1, "default", "right", "top", false, false, true, false, false) dxDrawLine(358, 452, 452, 452, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 480, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(452, 454, 452, 480, tocolor(211, 0, 0, 255), 2, true) dxDrawLine(358, 452, 358, 478, tocolor(211, 0, 0, 255), 2, true) dxDrawText("-1", 425, 233, 570, 261, tocolor(255, 255, 255, 255), 1, "default", "left", "center", false, false, true, false, false) dxDrawText("-2", 472, 262, 615, 289, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) dxDrawText("-3", 443, 292, 586, 319, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end removeEventHandler ( "onClientRander",root,draw1 ) bindKey ("F10", "down", Open ) function Open ( ) if removeEventHandler ( "onClientRender", root,draw1 ) then removeEventHandler ( "onClientRander", root,drawPlay) showCursor ( false ) elseif addEventHandler ("onClientRender", root, drawPlay) then addEventHandler ("onClientRander", root , draw1) showCursor ( true ) end end end function Buttons () if source == GUIEditor.button[1] then addEventHandler ( "onClientRender",root,drawPlay ) removeEventHandler ( "onClientRender",root,draw1 ) guiSetVisible(GUIEditor.button[1] , false) guiSetVisible ( GUIEditor.button[2],true ) elseif source == GUIEditor.button[2] then removeEventHandler ( "onClientRender",root,drawPlay ) addEventHandler ( "onClientRender",root,draw1 ) guiSetVisible(GUIEditor.button[1] , true) guiSetVisible ( GUIEditor.button[2], false) end end end addEventHandler ( "onClientGUIClick",root,Buttons ) GUIEditor = { button = {}, } GUIEditor.button[1] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€ط·ع¾ط·آ§ط¸â€ط¸ظ¹", false) GUIEditor.button[2] = guiCreateButton(358, 452, 93, 29, "ط·آ§ط¸â€ط·آ³ط·آ§ط·آ¨ط¸â€ڑ", false) جرب وعطني خبر * 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