Jump to content

Elohim

Members
  • Posts

    9
  • Joined

  • Last visited

Elohim's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. Returns error loading dxDrawImage on line 10. sorry if i cause troubles.
  2. dont work, "Expected string at argument 1" "Expected material at argument 6 " and "Expected string at argument 1"
  3. local sw,sh = guiGetScreenSize() local spacer = dxGetFontHeight(1.2,"default") function draw(splashpath,name,text) local dg = dxDrawImage(sw*.1,sh*.65,sw*.900,sh*.600,"tt.png") local nm = dxDrawText(name,sw*.3,sh*.85) local spl = dxDrawImage(sw*.12,sh*.72,sw*.200,sh*.400,splashpath) local txt = dxDrawText(text,sw*.29,sh*.90+spacer) end function drawDialogue(splashpath,name,text) local nm = "bartender" local spl = "bartender.png" local txt = "test" addEventHandler("onClientRender",root,draw) end drawDialogue("bartender.png","bartender","testing the shoots") i removed the locals on top, and repaired the errors that anubhav wrote, but i still cant add the variables to the event
  4. I did this local sw,sh = guiGetScreenSize() local spacer = dxGetFontHeight(1.2,"default") local nm = nm local spl = spl local txt = txt function draw(splashpath,name,text) if (splashpath) and (name) and (text) then dg = dxDrawImage(sw*.1,sh*.65,sw*.900,sh*.600,"tt.png") nm = dxDrawText(name,sw*.3,sh*.85) spl = dxDrawImage(sw*.12,sh*.72,sw*.200,sh*.400,splashpath) txt = dxDrawText(text,sw*.29,sh*.90+spacer) else outputDebugScript("Incorrect Syntaxis: drawDialogue(splashartpath,name,text)") end end function drawDialogue(splashpath,name,text) local nm = "bartender" local spl = "bartender.png" local txt = "test" addEventHandler("onClientRender",getLocalPlayer(),draw) end didnt work, i think i did a mistake anywhere, or everywhere u.u
  5. Oh, ok, and what is the best way to render that? "onClientRender"? Edit: sorry, i cant get it to work, how can i do correctly the global variables? only add the _ ?
  6. Hello, i want to do an function that triggers other dx function, like this: local sw,sh = guiGetScreenSize() function draw(splashpath,name,text) if (splashpath) and (name) and (text) then dg = dxDrawImage(sw*.1,sh*.65,sw*.900,sh*.600,"tt.png") nm = dxDrawText(name,sw*.3,sh*.85) spl = dxDrawImage(sw*.12,sh*.72,sw*.200,sh*.400,splashpath) txt = dxDrawText(text,sw*.29,sh*.90) else outputDebugScript("Incorrect Syntaxis: drawDialogue(splashartpath,name,text)") end end --This triggers the function in top function drawDialogue(splashpath,name,text) addEventHandler("onClientRender",getLocalPlayer(),draw) end i dont know how to add the arguments splashpath,name, and text into the eventHandler
  7. Repaired, Thanks, that was.
  8. Yes it is, i checked the meta.xml and the themes.xml files, i also checked all the themes into the resource, and Orange is present everywhere, but in case i changed the theme to other, like Lighter Black or Subaru, all of they returns me that error.
  9. Hello, im using SDT_GUI for first time, and i cant create a window, debugscript returns that dont exist the main theme, this is the code im using : g = exports.SDT_GUI function mainWindow() window = g:dxCreateWindow(resourceRoot,555,600,555,555,"blablalb",tocolor(255,255,255,255),"default","Orange") end addEventHandler("onClientRender",root,mainWindow)
×
×
  • Create New...