NeRo-_- Posted February 22, 2022 Share Posted February 22, 2022 Got this warning: 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
_TheDarkOne17_ Posted February 22, 2022 Share Posted February 22, 2022 (edited) 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 February 22, 2022 by _TheDarkOne17_ Link to comment
NeRo-_- Posted February 22, 2022 Author Share Posted February 22, 2022 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 14 minutes ago, _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. 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
_TheDarkOne17_ Posted February 22, 2022 Share Posted February 22, 2022 (edited) 11 minutes ago, 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 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 February 22, 2022 by _TheDarkOne17_ Link to comment
NeRo-_- Posted February 22, 2022 Author Share Posted February 22, 2022 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) Link to comment
_TheDarkOne17_ Posted February 22, 2022 Share Posted February 22, 2022 (edited) 5 minutes ago, NeRo-_- said: 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) 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 February 22, 2022 by _TheDarkOne17_ Link to comment
NeRo-_- Posted February 22, 2022 Author Share Posted February 22, 2022 can you help me with the second script? 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
_TheDarkOne17_ Posted February 22, 2022 Share Posted February 22, 2022 3 minutes ago, NeRo-_- said: can you help me with the second script? 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 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
NeRo-_- Posted February 22, 2022 Author Share Posted February 22, 2022 5 minutes ago, _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 THANKS YOU ARE BEST <333 1 Link to comment
NeRo-_- Posted February 24, 2022 Author Share Posted February 24, 2022 On 23/02/2022 at 00:31, NeRo-_- said: THANKS YOU ARE BEST <333 On 23/02/2022 at 00: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 hello, will you help me again? Link to comment
_TheDarkOne17_ Posted March 1, 2022 Share Posted March 1, 2022 On 23/02/2022 at 22:06, NeRo-_- said: hello, will you help me again? Sorry for replying so late, sure. talk to me privately on the forum 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