Jump to content

Please help


NeRo-_-

Recommended Posts

Got this warning:

unknown.png

the code:

function showBank machine ()
         local alph = interpolateBetween (0, 0, 0, 255, 0, 0, (getTickCount () - tick) / 1000, "OutQuad")
         dxDrawImage (440 * w, 301 * h, 400 * w, 430 * h, "atm-psrpg.png", 0, 0, 0, tocolor (255, 255, 255, alph), false)
dxDrawText (guiGetText (bar), 520 * w, 496 * h, w, h, tocolor (255,255,255, alpha), 1.00 * w, font)
         dxDrawText ("" .. money .. "PLN", 520 * w, 406 * h, 784 * w, 442 * h, tocolor (255, 255, 255, alph), 1.00 * w, font, "left", "center", false, false, false, false, false)
end

Please Help Me, I don't know what to do, I'm green on these things

Link to comment

function showBank machine ()
         local alph = interpolateBetween (0, 0, 0, 255, 0, 0, (getTickCount () - tick) / 1000, "OutQuad")
         dxDrawImage (440 * w, 301 * h, 400 * w, 430 * h, "atm-psrpg.png", 0, 0, 0, tocolor (255, 255, 255, alph), false)
dxDrawText (guiGetText (bar), 520 * w, 496 * h, w, h, tocolor (255,255,255, alpha), 1.00 * w, 'default-bold')
         dxDrawText ("" .. money .. "PLN", 520 * w, 406 * h, 784 * w, 442 * h, tocolor (255, 255, 255, alph), 1.00 * w, font, "left", "center", false, false, false, false, false)
end

check this.

Edited by _TheDarkOne17_
Link to comment

still the same error

sorry,this is code.


function pokazBankomat()
        local alph = interpolateBetween(0, 0, 0, 255, 0, 0, (getTickCount() - tick)/1000, "OutQuad")
        dxDrawImage(440*w, 301*h, 400*w, 430*h, "bankomat-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, alph), false)
        dxDrawText(guiGetText(pasek),520*w, 496*h,w,h,tocolor(255,255,255,alph),1.00*w, font)
        dxDrawText(""..pieniadze.." PLN", 520*w, 406*h, 784*w, 442*h, tocolor(255, 255, 255, alph), 1.00*w, font, "left", "center", false, false, false, false, false)
end

  On 22/02/2022 at 22:48, _TheDarkOne17_ said:

function showBank machine ()
         local alph = interpolateBetween (0, 0, 0, 255, 0, 0, (getTickCount () - tick) / 1000, "OutQuad")
         dxDrawImage (440 * w, 301 * h, 400 * w, 430 * h, "atm-psrpg.png", 0, 0, 0, tocolor (255, 255, 255, alph), false)
dxDrawText (guiGetText (bar), 520 * w, 496 * h, w, h, tocolor (255,255,255, alpha), 1.00 * w, 'default-bold')
         dxDrawText ("" .. money .. "PLN", 520 * w, 406 * h, 784 * w, 442 * h, tocolor (255, 255, 255, alph), 1.00 * w, font, "left", "center", false, false, false, false, false)
end

check this.

Expand  

still the same error

sorry,this is code.


function pokazBankomat()
        local alph = interpolateBetween(0, 0, 0, 255, 0, 0, (getTickCount() - tick)/1000, "OutQuad")
        dxDrawImage(440*w, 301*h, 400*w, 430*h, "bankomat-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, alph), false)
        dxDrawText(guiGetText(pasek),520*w, 496*h,w,h,tocolor(255,255,255,alph),1.00*w, font)
        dxDrawText(""..pieniadze.." PLN", 520*w, 406*h, 784*w, 442*h, tocolor(255, 255, 255, alph), 1.00*w, font, "left", "center", false, false, false, false, false)
end

Link to comment
  On 22/02/2022 at 23:01, NeRo-_- said:

still the same error

sorry,this is code.


function pokazBankomat()
        local alph = interpolateBetween(0, 0, 0, 255, 0, 0, (getTickCount() - tick)/1000, "OutQuad")
        dxDrawImage(440*w, 301*h, 400*w, 430*h, "bankomat-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, alph), false)
        dxDrawText(guiGetText(pasek),520*w, 496*h,w,h,tocolor(255,255,255,alph),1.00*w, font)
        dxDrawText(""..pieniadze.." PLN", 520*w, 406*h, 784*w, 442*h, tocolor(255, 255, 255, alph), 1.00*w, font, "left", "center", false, false, false, false, false)
end

still the same error

sorry,this is code.


function pokazBankomat()
        local alph = interpolateBetween(0, 0, 0, 255, 0, 0, (getTickCount() - tick)/1000, "OutQuad")
        dxDrawImage(440*w, 301*h, 400*w, 430*h, "bankomat-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, alph), false)
        dxDrawText(guiGetText(pasek),520*w, 496*h,w,h,tocolor(255,255,255,alph),1.00*w, font)
        dxDrawText(""..pieniadze.." PLN", 520*w, 406*h, 784*w, 442*h, tocolor(255, 255, 255, alph), 1.00*w, font, "left", "center", false, false, false, false, false)
end

Expand  
function pokazBankomat()
    local alph = interpolateBetween(0, 0, 0, 255, 0, 0, (getTickCount() - tick)/1000, "OutQuad")
    dxDrawImage(440*w, 301*h, 400*w, 430*h, "bankomat-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, alph), false)
    dxDrawText(guiGetText(pasek),520*w, 496*h,w,h,tocolor(255,255,255,alph),1.00*w, 'default-bold')
    dxDrawText(""..pieniadze.." PLN", 520*w, 406*h, 784*w, 442*h, tocolor(255, 255, 255, alph), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
end

check this...

Edited by _TheDarkOne17_
Link to comment

 

  On 22/02/2022 at 23:15, NeRo-_- said:

unknown.png
 

this is code:

 

local font = dxCreateFont(":dG-Fonty/1.ttf", 10)
local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local pieniadze = 0
mojeW,mojeH = 1280, 1024
sW,sH = guiGetScreenSize()
w, h = (sW/mojeW), (sH/mojeH)

Expand  

what happens is that there is no file or it is not in that folder, that's why the error.

delete font from the variables and that will do.

 

local screenW, screenH = guiGetScreenSize()
local sx, sy = guiGetScreenSize()
local pieniadze = 0
mojeW,mojeH = 1280, 1024
sW,sH = guiGetScreenSize()
w, h = (sW/mojeW), (sH/mojeH)

 

Edited by _TheDarkOne17_
Link to comment

can you help me with the second script?

unknown.png

code 107 and 108: 

        dxDrawImage(440*w, 237*h, 400*w, 550*h, "files/interakcja-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText(w1, 526*w, 348*h, 816*w, 384*h, tocolor(r1, r12, r13, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w2, 526*w, 422*h, 816*w, 458*h, tocolor(r2, r22, r23, 255), 1.00*w, font, "left", "center", false, false, false, false, false)

code 117 and 118: 

        dxDrawText(w3, 526*w, 496*h, 816*w, 532*h, tocolor(r3, r32, r33, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w4, 526*w, 570*h, 816*w, 606*h, tocolor(r4, r42, r43, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w5, 526*w, 644*h, 816*w, 680*h, tocolor(r5, r52, r53, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w6, 526*w, 718*h, 816*w, 754*h, tocolor(r6, r62, r63, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
    else
        setElementData(localPlayer,"maksymalny_wybor",3)
    end
end

Link to comment
  On 22/02/2022 at 23:21, NeRo-_- said:

can you help me with the second script?

unknown.png

code 107 and 108: 

        dxDrawImage(440*w, 237*h, 400*w, 550*h, "files/interakcja-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText(w1, 526*w, 348*h, 816*w, 384*h, tocolor(r1, r12, r13, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w2, 526*w, 422*h, 816*w, 458*h, tocolor(r2, r22, r23, 255), 1.00*w, font, "left", "center", false, false, false, false, false)

code 117 and 118: 

        dxDrawText(w3, 526*w, 496*h, 816*w, 532*h, tocolor(r3, r32, r33, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w4, 526*w, 570*h, 816*w, 606*h, tocolor(r4, r42, r43, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w5, 526*w, 644*h, 816*w, 680*h, tocolor(r5, r52, r53, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
        dxDrawText(w6, 526*w, 718*h, 816*w, 754*h, tocolor(r6, r62, r63, 255), 1.00*w, font, "left", "center", false, false, false, false, false)
    else
        setElementData(localPlayer,"maksymalny_wybor",3)
    end
end

Expand  

the error is the same as in the previous ones.

--code 107 and 108: 

        dxDrawImage(440*w, 237*h, 400*w, 550*h, "files/interakcja-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText(w1, 526*w, 348*h, 816*w, 384*h, tocolor(r1, r12, r13, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w2, 526*w, 422*h, 816*w, 458*h, tocolor(r2, r22, r23, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)

--code 117 and 118: 

        dxDrawText(w3, 526*w, 496*h, 816*w, 532*h, tocolor(r3, r32, r33, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w4, 526*w, 570*h, 816*w, 606*h, tocolor(r4, r42, r43, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w5, 526*w, 644*h, 816*w, 680*h, tocolor(r5, r52, r53, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w6, 526*w, 718*h, 816*w, 754*h, tocolor(r6, r62, r63, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
    else
        setElementData(localPlayer,"maksymalny_wybor",3)
    end
end

 

Link to comment
  On 22/02/2022 at 23:26, _TheDarkOne17_ said:

the error is the same as in the previous ones.

--code 107 and 108: 

        dxDrawImage(440*w, 237*h, 400*w, 550*h, "files/interakcja-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText(w1, 526*w, 348*h, 816*w, 384*h, tocolor(r1, r12, r13, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w2, 526*w, 422*h, 816*w, 458*h, tocolor(r2, r22, r23, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)

--code 117 and 118: 

        dxDrawText(w3, 526*w, 496*h, 816*w, 532*h, tocolor(r3, r32, r33, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w4, 526*w, 570*h, 816*w, 606*h, tocolor(r4, r42, r43, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w5, 526*w, 644*h, 816*w, 680*h, tocolor(r5, r52, r53, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w6, 526*w, 718*h, 816*w, 754*h, tocolor(r6, r62, r63, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
    else
        setElementData(localPlayer,"maksymalny_wybor",3)
    end
end

 

Expand  

THANKS YOU ARE BEST <333

  • Like 1
Link to comment
  On 22/02/2022 at 23:31, NeRo-_- said:

THANKS YOU ARE BEST <333

Expand  

 

  On 22/02/2022 at 23:26, _TheDarkOne17_ said:

the error is the same as in the previous ones.

--code 107 and 108: 

        dxDrawImage(440*w, 237*h, 400*w, 550*h, "files/interakcja-psrpg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
        dxDrawText(w1, 526*w, 348*h, 816*w, 384*h, tocolor(r1, r12, r13, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w2, 526*w, 422*h, 816*w, 458*h, tocolor(r2, r22, r23, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)

--code 117 and 118: 

        dxDrawText(w3, 526*w, 496*h, 816*w, 532*h, tocolor(r3, r32, r33, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w4, 526*w, 570*h, 816*w, 606*h, tocolor(r4, r42, r43, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w5, 526*w, 644*h, 816*w, 680*h, tocolor(r5, r52, r53, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
        dxDrawText(w6, 526*w, 718*h, 816*w, 754*h, tocolor(r6, r62, r63, 255), 1.00*w, 'default-bold', "left", "center", false, false, false, false, false)
    else
        setElementData(localPlayer,"maksymalny_wybor",3)
    end
end

 

Expand  

hello, will you help me again?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...