localPlayer = getLocalPlayer ()GUIEditor = { edit = {}}addEventHandler(\"onClientResourceStart\", resourceRoot, function() GUIEditor.edit[1] = guiCreateEdit(704, 483, 375, 28, \"\", false) guiSetAlpha(GUIEditor.edit[1], 0.00)setElementData (localPlayer, \"statec\", 1) end) local screenW, screenH = guiGetScreenSize()function eredmenycreator ()statec = getElementData (localPlayer, \"statec\")if statec == 1 then -- ösz mód eredmeny1 = math.random (1000, 90000)eredmeny2 = math.random (1000, 90000)jel = \"+\"endendaddEventHandler(\"onClientRender\", root, function()eredmeny = guiGetText (GUIEditor.edit[1])statec = getElementData (localPlayer, \"statec\")if statec == 1 then -- ösz mód eredmeny1 = math.random (1000, 90000)eredmeny2 = math.random (1000, 90000)jel = \"+\"end dxDrawLine((screenW * 0.3615) - 1, (screenH * 0.2056) - 1, (screenW * 0.3615) - 1, screenH * 0.8546, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.5661, (screenH * 0.2056) - 1, (screenW * 0.3615) - 1, (screenH * 0.2056) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3615) - 1, screenH * 0.8546, screenW * 0.5661, screenH * 0.8546, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.5661, screenH * 0.8546, screenW * 0.5661, (screenH * 0.2056) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3615, screenH * 0.2056, screenW * 0.2047, screenH * 0.6491, tocolor(12, 19, 79, 200), false) dxDrawRectangle(screenW * 0.3667, screenH * 0.7704, screenW * 0.1943, screenH * 0.0278, tocolor(0, 0, 1, 255), false) dxDrawText(\"Kész\", 704, 831, 1077, 862, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawLine(704 - 1, 485 - 1, 704 - 1, 511, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1077, 485 - 1, 704 - 1, 485 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(704 - 1, 511, 1077, 511, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1077, 511, 1077, 485 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(704, 485, 373, 26, tocolor(255, 255, 255, 255), false) dxDrawText(eredmeny, 703, 484, 1077, 511, tocolor(219, 0, 0, 255), 1.00, \"bankgothic\", \"left\", \"top\", false, false, false, false, false) dxDrawText(eredmeny1..\" \"..jel..\" \"..eredmeny2, 748, 379, 1012, 419, tocolor(255, 255, 255, 255), 1.00, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Created By: Greg Copyright 2016-9999\", 700, 895, 1082, 913, tocolor(255, 255, 255, 255), 0.90, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Math #000000Test\", 703, 232, 1079, 252, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, true, false) dxDrawLine(724 - 1, 565 - 1, 724 - 1, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(825, 565 - 1, 724 - 1, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(724 - 1, 595, 825, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(825, 595, 825, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(724, 565, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawLine(835 - 1, 565 - 1, 835 - 1, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 565 - 1, 835 - 1, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(835 - 1, 595, 936, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 595, 936, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(835, 565, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawLine(946 - 1, 565 - 1, 946 - 1, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1047, 565 - 1, 946 - 1, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(946 - 1, 595, 1047, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1047, 595, 1047, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(946, 565, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawLine(835 - 1, 605 - 1, 835 - 1, 635, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 605 - 1, 835 - 1, 605 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(835 - 1, 635, 936, 635, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 635, 936, 605 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(835, 605, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawText(\"Ősszeadás\", 723, 565, 825, 595, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Kivonás\", 835, 565, 937, 595, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Szorzás\", 945, 565, 1047, 595, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Osztás\", 834, 605, 936, 635, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) end) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function faszom(gomb, allapot, absX, absY) if allapot == \"down\" and gomb == \"left\" then if dobozbaVan(704, 831, 1077, 862, absX, absY) then -- Kész gomb elseif dobozbaVan(723, 565, 825, 595, absX, absY) then -- Össz gomb if statec > 1 then setElementData(localPlayer,\"statec\", 1) outputDebugString(\"ÖSSZEADÁS\") end elseif dobozbaVan(835, 565, 937, 595, absX, absY) then -- Kivon gomb if statec > 2 then setElementData(localPlayer,\"statec\", 2) outputDebugString(\"KIVONÁS\") end elseif dobozbaVan(945, 565, 1047, 595, absX, absY) then -- Szor gomb if statec > 3 then setElementData(localPlayer,\"statec\", 3) outputDebugString(\"SZORZÁS\") end elseif dobozbaVan(834, 605, 936, 635, absX, absY) then -- Oszt gomb if statec > 4 then setElementData(localPlayer,\"statec\", 4) outputDebugString(\"OSZTÁS\") endendendendaddEventHandler(\"onClientClick\", getRootElement(), faszom)
Sziasztok! Tudom a scriptnek semmi értelme (még) , de amikor rányomok valamelyik dx Gombra,m akkor nem írja ki debugscript-be amit kéne. localPlayer = getLocalPlayer ()GUIEditor = { edit = {}}addEventHandler(\"onClientResourceStart\", resourceRoot, function() GUIEditor.edit[1] = guiCreateEdit(704, 483, 375, 28, \"\", false) guiSetAlpha(GUIEditor.edit[1], 0.00)setElementData (localPlayer, \"statec\", 1) end) local screenW, screenH = guiGetScreenSize()function eredmenycreator ()statec = getElementData (localPlayer, \"statec\")if statec == 1 then -- ösz mód eredmeny1 = math.random (1000, 90000)eredmeny2 = math.random (1000, 90000)jel = \"+\"endendaddEventHandler(\"onClientRender\", root, function()eredmeny = guiGetText (GUIEditor.edit[1])statec = getElementData (localPlayer, \"statec\")if statec == 1 then -- ösz mód eredmeny1 = math.random (1000, 90000)eredmeny2 = math.random (1000, 90000)jel = \"+\"end dxDrawLine((screenW * 0.3615) - 1, (screenH * 0.2056) - 1, (screenW * 0.3615) - 1, screenH * 0.8546, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.5661, (screenH * 0.2056) - 1, (screenW * 0.3615) - 1, (screenH * 0.2056) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.3615) - 1, screenH * 0.8546, screenW * 0.5661, screenH * 0.8546, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.5661, screenH * 0.8546, screenW * 0.5661, (screenH * 0.2056) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.3615, screenH * 0.2056, screenW * 0.2047, screenH * 0.6491, tocolor(12, 19, 79, 200), false) dxDrawRectangle(screenW * 0.3667, screenH * 0.7704, screenW * 0.1943, screenH * 0.0278, tocolor(0, 0, 1, 255), false) dxDrawText(\"Kész\", 704, 831, 1077, 862, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, false, false) dxDrawLine(704 - 1, 485 - 1, 704 - 1, 511, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1077, 485 - 1, 704 - 1, 485 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(704 - 1, 511, 1077, 511, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1077, 511, 1077, 485 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(704, 485, 373, 26, tocolor(255, 255, 255, 255), false) dxDrawText(eredmeny, 703, 484, 1077, 511, tocolor(219, 0, 0, 255), 1.00, \"bankgothic\", \"left\", \"top\", false, false, false, false, false) dxDrawText(eredmeny1..\" \"..jel..\" \"..eredmeny2, 748, 379, 1012, 419, tocolor(255, 255, 255, 255), 1.00, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Created By: Greg Copyright 2016-9999\", 700, 895, 1082, 913, tocolor(255, 255, 255, 255), 0.90, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Math #000000Test\", 703, 232, 1079, 252, tocolor(255, 255, 255, 255), 1.00, \"bankgothic\", \"center\", \"center\", false, false, false, true, false) dxDrawLine(724 - 1, 565 - 1, 724 - 1, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(825, 565 - 1, 724 - 1, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(724 - 1, 595, 825, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(825, 595, 825, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(724, 565, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawLine(835 - 1, 565 - 1, 835 - 1, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 565 - 1, 835 - 1, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(835 - 1, 595, 936, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 595, 936, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(835, 565, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawLine(946 - 1, 565 - 1, 946 - 1, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1047, 565 - 1, 946 - 1, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(946 - 1, 595, 1047, 595, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(1047, 595, 1047, 565 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(946, 565, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawLine(835 - 1, 605 - 1, 835 - 1, 635, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 605 - 1, 835 - 1, 605 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(835 - 1, 635, 936, 635, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(936, 635, 936, 605 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(835, 605, 101, 30, tocolor(255, 255, 255, 255), false) dxDrawText(\"Ősszeadás\", 723, 565, 825, 595, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Kivonás\", 835, 565, 937, 595, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Szorzás\", 945, 565, 1047, 595, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) dxDrawText(\"Osztás\", 834, 605, 936, 635, tocolor(0, 1, 0, 255), 0.50, \"pricedown\", \"center\", \"center\", false, false, false, false, false) end) function dobozbaVan(dX, dY, dSZ, dM, eX, eY) if(eX >= dX and eX <= dX+dSZ and eY >= dY and eY <= dY+dM) then return true else return false end end function faszom(gomb, allapot, absX, absY) if allapot == \"down\" and gomb == \"left\" then if dobozbaVan(704, 831, 1077, 862, absX, absY) then -- Kész gomb elseif dobozbaVan(723, 565, 825, 595, absX, absY) then -- Össz gomb if statec > 1 then setElementData(localPlayer,\"statec\", 1) outputDebugString(\"ÖSSZEADÁS\") end elseif dobozbaVan(835, 565, 937, 595, absX, absY) then -- Kivon gomb if statec > 2 then setElementData(localPlayer,\"statec\", 2) outputDebugString(\"KIVONÁS\") end elseif dobozbaVan(945, 565, 1047, 595, absX, absY) then -- Szor gomb if statec > 3 then setElementData(localPlayer,\"statec\", 3) outputDebugString(\"SZORZÁS\") end elseif dobozbaVan(834, 605, 936, 635, absX, absY) then -- Oszt gomb if statec > 4 then setElementData(localPlayer,\"statec\", 4) outputDebugString(\"OSZTÁS\") endendendendaddEventHandler(\"onClientClick\", getRootElement(), faszom)