Jump to content

NeVada

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

NeVada's Achievements

Vic

Vic (3/54)

1

Reputation

  1. Oh, thank you for your help! It's better than my.
  2. I've finally made it! And it wasn't so hard haha. Maybe it's a bit amateurish. function drawNextPage() dxDrawRectangle(x/3, y/3, 500, 450, tocolor(0, 0, 0, 125)) dxDrawRectangle(x/3, y/3, 500, 20, tocolor(0, 0, 0, 125)) end function showFirst() addEventHandler("onClientRender", root, drawNextPage) addEventHandler("onClientClick", getRootElement(), onClickNext) showCursor(true) end function onClickNext(button, state, absoluteX, absoluteY, worldX, worldZ, clickedElement) if (state == "down") then if (absoluteX >= x/1.6) and (absoluteX <= x/1.6 + 100) and (absoluteY >= y/1.4) and (absoluteY <= y/1.4 + 100) then disappearThings() showFirst() end end end
  3. Hey guys, I have some problem with my panel. So, first of all, I did a small panel with two buttons. I can close the panel, but I don't know how to make a next page. How could I make a next page? Should I disappear the first page, and then create another one? Here's my code: local thePlayer = getLocalPlayer() local x, y = guiGetScreenSize(thePlayer) local pS = [[randomtext]] ------------------------------------------------------------------------------------------- function drawInformation() dxDrawRectangle(x/3, y/3, 500, 450, tocolor(0, 0, 0, 125)) dxDrawRectangle(x/3, y/3, 500, 20, tocolor(0, 0, 0, 125)) dxDrawRectangle(x/2.8, y/1.4, 100, 30, tocolor(0, 0, 0, 125)) dxDrawRectangle(x/1.6, y/1.4, 100, 30, tocolor(0, 0, 0, 125)) dxDrawText("Welcome to the help panel!", x/2.3, y/2.8, tocolor(75, 108, 213, 115)) dxDrawText(pS, x/2.8, y/2.6) dxDrawText("Close", x/2.6, y/1.39, tocolor(75, 108, 213, 125)) dxDrawText("Next", x/1.54, y/1.39, tocolor(75, 108, 213, 125)) end ------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------- function showThings() addEventHandler("onClientRender", root, drawThings) addEventHandler("onClientClick", getRootElement(), onClickThing) showCursor(true) outputChatBox("t") end addCommandHandler("test", showThings) function disappearThings() removeEventHandler("onClientRender", root, drawThings) removeEventHandler("onClientClick", getRootElement(), onClickThing) showCursor(false) outputChatBox("t.") end --------------------------------------------------------------------------------------------- function onClickThing(button, state, absoluteX, absoluteY, worldX, worldZ, clickedElement) if (state == "down") then if (absoluteX >= x/2.8) and (absoluteX <= x/2.8 + 100) and (absoluteY >= y/1.4) and (absoluteY <= y/1.4 + 100) then disappearThings() end end end
  4. Sziasztok! Készítettem 3Ds Max-ban egy dobozt, amit megtextúráztam. Elkészítettem a .dff, .col, .txd fájlt, megírtam a scriptet megadtam a scriptben a megfelelő elérési utat a fájlokhoz. Debugscript 3 viszont hibát jelzett ki: Debugscript: WARNING: box\sourceC.lua:2 Error loading TXD @'engineLoadTXD' [files/cube.txd] WARNING: box\sourceC.lua:3 Bad argument @'engineImportTXD' [Expected txd at argument 1, got boolean] WARNING: box\sourceC.lua:5 Bad usage @'engineReplaceModel' [Model ID 4848 replace failed] Kód: function loadMod(fajl, model, col) txd = engineLoadTXD('files/'.. fajl ..'.txd') engineImportTXD(txd, model) dff = engineLoadDFF('files/'.. fajl ..'.dff', 0) engineReplaceModel(dff, model) if col then col = engineLoadCOL('files/'.. fajl ..'.col') engineReplaceCOL(col, model) end end loadMod("cube", 4848, true) Meta: <meta> <script src="sourceC.lua" type="client" /> <file src="files/cube.dff" /> <file src="files/cube.txd" /> <file src="files/cube.col" /> </meta> A fájlok a helyükön vannak, többször is megnéztem, szervert is újraindítottam de semmi. Segítségeket előre is köszönöm.
  5. Szia! Az ajánlatod felkeltette az érdeklődésem, kérlek írj egy privát üzenetet a részletekről!
  6. Sziasztok! Nemrégiben kezdtem el a LUA tanulást, és scriptert keresek, aki esetleg vállalná azt hogy "segít" nekem a scriptelés tanulásában. Ha van köztetek olyan aki szívesen segítene, az kérem keressen fel Privát Üzenetben! Köszönöm! Nevada
×
×
  • Create New...