Wysłany: 2018-09-09, 17:08
CinusPL
Wiek: 26 Na forum: 2832 dni Posty: 20
Nick w MP: CinusPL
Witam, mam gm It's your world na serwerze, po wejsciu i zalogowaniu sie na niego jak wpisze debugscript 3 mam takie b?edy:
i s? straszne lagi jak w?aczony jest ogrpg-gui bo jak wy?acz? to lagi znikaja ?
Dzi?kuje z g?ry za pomoc
Wysłany: 2018-09-09, 18:30
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Pode?lij kod ogrpg-gui/c_gui.lua.
"Bad file path" = B??dna ?cie?ka pliku, nie ma w skrypcie 'dohudu' pliku hajs.png, tlo.png oraz czas.png.
W linijce 57 w c_gui.lua nie znajduje si? czcionka DX.
Wysłany: 2018-09-09, 19:21
CinusPL
Wiek: 26 Na forum: 2832 dni Posty: 20
Nick w MP: CinusPL
"Wilq" napisał/a :Pode?lij kod ogrpg-gui/c_gui.lua.
"Bad file path" = B??dna ?cie?ka pliku, nie ma w skrypcie 'dohudu' pliku hajs.png, tlo.png oraz czas.png.
W linijce 57 w c_gui.lua nie znajduje si? czcionka DX.
c_gui.lua
Kod:
local sx,sy=guiGetScreenSize()
local screenW, screenH=guiGetScreenSize()
local dxfont0_BebasNeue = dxCreateFont(":dohudu/BebasNeue.otf", 24)
local dxfont1_BebasNeue = dxCreateFont(":dohudu/BebasNeue.otf", 28)
local dxfontxd_BebasNeue = dxCreateFont(":dohudu/BebasNeue.otf", 18)
local sw,sh=guiGetScreenSize()
local przecinekx,przecineky=sw*760/800,100/600*sh
local przecinekfs2=sw/800
local przecinekfs=przecinekfs2
local czcionkakasa="pricedown"
local czcionka=czcionkakasa
local przecinekfh=math.floor(dxGetFontHeight(przecinekfs, "pricedown")*2/3)
local dxfont0_tak = dxCreateFont("tak.ttf", 29)
if not dxfont0_tak then dxfont0_tak = "sans" end
local dxfont0 = dxCreateFont("minus.ttf", 28)
if not dxfont0 then dxfont0 = "sans" end
local dxfont0_Painted = dxCreateFont("Painted.ttf", 30)
if not dxfont0_Painted then dxfont0 = "sans" end
local dxfont0_tekst = dxCreateFont("minus.ttf", 18)
local dxfont0_BIRTH_OF_A_HERO = dxCreateFont(":Radio-auta/files/BIRTH_OF_A_HERO.ttf", 40)
if not dxfont0_tekst then dxfont0_tekst = "sans" end
radarek = nil
local lstMoney=getPlayerMoney()
local tmpMoney=getPlayerMoney()
local lstMoneyTs=getTickCount()
local lstMoneyDiff=0
function renderHUD()
if showhud == false then return end
if not getElementData(localPlayer, "player:uid") then return end
dxSetAspectRatioAdjustmentEnabled( true )
dxDrawImage(screenW * 0.6881, screenH * 0.0191, screenW * 0.3000, screenH * 0.2050, ":dohudu/tlo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.7186, screenH * 0.1390, screenW * 0.0329, screenH * 0.0573, ":dohudu/hajs.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawImage(screenW * 0.7186, screenH * 0.0926, screenW * 0.0300, screenH * 0.0480, ":dohudu/czas.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
dxDrawText(string.format("%02d",hour)..":"..string.format("%02d", minute)..":"..string.format("%02d", sec), (screenW * 0.7590) - 1, (screenH * 0.0950) - 1, (screenW * 0.9693) - 1, (screenH * 0.1810) - 1, tocolor(0, 0, 0, 255), 1.00, dxfont1_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%02d",hour)..":"..string.format("%02d", minute)..":"..string.format("%02d", sec), (screenW * 0.7590) + 1, (screenH * 0.0950) - 1, (screenW * 0.9693) + 1, (screenH * 0.1810) - 1, tocolor(0, 0, 0, 255), 1.00, dxfont1_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%02d",hour)..":"..string.format("%02d", minute)..":"..string.format("%02d", sec), (screenW * 0.7590) - 1, (screenH * 0.0950) + 1, (screenW * 0.9693) - 1, (screenH * 0.1810) + 1, tocolor(0, 0, 0, 255), 1.00, dxfont1_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%02d",hour)..":"..string.format("%02d", minute)..":"..string.format("%02d", sec), (screenW * 0.7590) + 1, (screenH * 0.0950) + 1, (screenW * 0.9693) + 1, (screenH * 0.1810) + 1, tocolor(0, 0, 0, 255), 1.00, dxfont1_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%02d",hour)..":"..string.format("%02d", minute)..":"..string.format("%02d", sec), screenW * 0.7590, screenH * 0.0950, screenW * 0.9693, screenH * 0.1810, tocolor(255, 255, 255, 255), 1.00, dxfont1_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%d PLN",hajs), (screenW * 0.7600) - 1, (screenH * 0.1450) - 1, (screenW * 0.9693) - 1, (screenH * 0.2474) - 1, tocolor(0, 0, 0, 255), 1.00, dxfont0_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%d PLN",hajs), (screenW * 0.7600) + 1, (screenH * 0.1450) - 1, (screenW * 0.9693) + 1, (screenH * 0.2474) - 1, tocolor(0, 0, 0, 255), 1.00, dxfont0_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%d PLN",hajs), (screenW * 0.7600) - 1, (screenH * 0.1450) + 1, (screenW * 0.9693) - 1, (screenH * 0.2474) + 1, tocolor(0, 0, 0, 255), 1.00, dxfont0_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%d PLN",hajs), (screenW * 0.7600) + 1, (screenH * 0.1450) + 1, (screenW * 0.9693) + 1, (screenH * 0.2474) + 1, tocolor(0, 0, 0, 255), 1.00, dxfont0_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(string.format("%d PLN",hajs), screenW * 0.7600, screenH * 0.1450, screenW * 0.9693, screenH * 0.2474, tocolor(54, 203, 51, 255), 1.00, dxfont0_BebasNeue, "left", "top", false, false, false, false, false)
if not getElementData(localPlayer,"player:premium") then
tekst=string.format("%s [%d] [UID: %d]",lokalny_nick,lokalne_id,lokalne_uid)
else
tekst=string.format("★ %s [%d] [UID: %d]",lokalny_nick,lokalne_id,lokalne_uid)
end
if not getElementData(localPlayer,"player:premium") then
local rozmiar = 1.00
dxDrawText(tekst, (screenW * 0.7236) - 1, (screenH * 0.0575) - 1, (screenW * 0.9693) - 1, (screenH * 0.1276) - 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, (screenW * 0.7236) + 1, (screenH * 0.0575) - 1, (screenW * 0.9693) + 1, (screenH * 0.1276) - 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, (screenW * 0.7236) - 1, (screenH * 0.0575) + 1, (screenW * 0.9693) - 1, (screenH * 0.1276) + 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, (screenW * 0.7236) + 1, (screenH * 0.0575) + 1, (screenW * 0.9693) + 1, (screenH * 0.1276) + 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, screenW * 0.7236, screenH * 0.0575, screenW * 0.9693, screenH * 0.1276, tocolor(255, 255, 255, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
else
dxDrawText(tekst, (screenW * 0.7236) - 1, (screenH * 0.0575) - 1, (screenW * 0.9693) - 1, (screenH * 0.1276) - 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, (screenW * 0.7236) + 1, (screenH * 0.0575) - 1, (screenW * 0.9693) + 1, (screenH * 0.1276) - 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, (screenW * 0.7236) - 1, (screenH * 0.0575) + 1, (screenW * 0.9693) - 1, (screenH * 0.1276) + 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, (screenW * 0.7236) + 1, (screenH * 0.0575) + 1, (screenW * 0.9693) + 1, (screenH * 0.1276) + 1, tocolor(0, 0, 0, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
dxDrawText(tekst, screenW * 0.7236, screenH * 0.0575, screenW * 0.9693, screenH * 0.1276, tocolor(249, 224, 75, 255), rozmiar, dxfontxd_BebasNeue, "left", "top", false, false, false, false, false)
end
--stare jak twoj stary xd; dxDrawText(tekst, screenW * 0.0000, screenH * 0.9701, screenW * 1.0000, screenH * 0.9948, tocolor(255, 255, 255, 210), 0.80, dxfont0_tekst, "center", "center", false, false, true, true, false)
end
function aktualizujdanexd()
local realtime = getRealTime()
hour = realtime.hour
hajs = getPlayerMoney()
minute = realtime.minute
lokalny_nick = getPlayerName(localPlayer):gsub("#%x%x%x%x%x%x","")
sec = realtime.second
if getElementData(localPlayer,"player:premium") then
konto = "#ffd700PREMIUM#ffffff"
else
konto = "ZWYKLE"
end
end
addEvent("gui:start2",true)
addEventHandler("gui:start2",root,function()
lokalne_id = getElementData(localPlayer,"id")
lokalne_uid = getElementData(localPlayer,"player:uid")
addEventHandler("onClientRender", root, aktualizujdanexd)
aktualizujdanexd()
showhud = true
showPlayerHudComponent("all",false)
showPlayerHudComponent("radar",true)
showPlayerHudComponent("crosshair",true)
showPlayerHudComponent("weapon",false)
showPlayerHudComponent("health",false)
showPlayerHudComponent("breath",false)
showPlayerHudComponent("ammo",false)
addEventHandler("onClientHUDRender", root, function()
if not getElementData(localPlayer,"player:logged") then return end
if dxSetAspectRatioAdjustmentEnabled then dxSetAspectRatioAdjustmentEnabled(true) end
renderHUD()
--renderPrzecinek()
end)
end)
addEvent("powiadomienie",true)
addEventHandler("powiadomienie",root,function(tekst)
if not tekst then return end
local x = ('%s'):format(tekst)
outputChatBox(x,255,255,255)
end)
addEventHandler("onClientResourceStart", resourceRoot, function()
showPlayerHudComponent("all",false)
showPlayerHudComponent("radar",true)
showPlayerHudComponent("crosshair",true)
showPlayerHudComponent("weapon",false)
showPlayerHudComponent("health",false)
showPlayerHudComponent("breath",false)
showPlayerHudComponent("ammo",false)
setBlurLevel(0)
end)
addCommandHandler("gp",function()
x,y,z=getElementPosition(localPlayer)
p=string.format("%.2f, %.2f, %.2f",x,y,z)
setClipboard(p)
outputChatBox(p)
end)
addCommandHandler("gp2",function()
x,y,z=getElementPosition(localPlayer)
rx,ry,rz=getElementRotation(localPlayer)
p=string.format("%.2f, %.2f, %.2f, %.2f, %.2f, %.2f",x,y,z,rx,ry,rz)
setClipboard(p)
outputChatBox(p)
end)
dohudu
Kod: <meta><file src="hajs.png"/><file src="czas.png"/><file src="tlo.png"/><file src="BebasNeue.otf"/></meta>
i w dohudu folderze sa te 3 pliki png
Wysłany: 2018-09-09, 19:29
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Skrypt 'dohudu' jest w??czony?
Wysłany: 2018-09-09, 19:51
CinusPL
Wiek: 26 Na forum: 2832 dni Posty: 20
Nick w MP: CinusPL
"Wilq" napisał/a :Skrypt 'dohudu' jest w??czony?
teraz jak w?aczylem dohudu to takie cos pokazuje ale nie ma hajsu i godziny pokazanej ?
[ Dodano : 2018-09-09, 19:57 ]
"Wilq" napisał/a :Skrypt 'dohudu' jest w??czony?
teraz jak w?aczylem szytskei resource mam takie bledy w debugscript , tamto z dohudu zninelo jeszcze to, pomocy. z gory dzieki
Wysłany: 2018-09-09, 20:06
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Spr?buj przenie?? czcionk? z dohudu do ogrpg-gui dodaj?c j? do mety i linijki 4, 5, 6 (sprawdz czy sa u ciebie takie same, moze linijki mi sie pomylily) zmie? na
local dxfont0_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 18 )
Wysłany: 2018-09-09, 20:08
_jvneczek
Wiek: 22 Na forum: 4325 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
CinusPL , Usu? shadery, musisz odpali? plik dohudu i pozniej dopiero ogrpg-gui
Podpis
Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021
Wysłany: 2018-09-09, 20:11
CinusPL
Wiek: 26 Na forum: 2832 dni Posty: 20
Nick w MP: CinusPL
"Thinks" napisał/a :CinusPL , Usu? shadery, musisz odpali? plik dohudu i pozniej dopiero ogrpg-gui
a jak to usunac?
[ Dodano : 2018-09-09, 20:11 ]
"Wilq" napisał/a :Spr?buj przenie?? czcionk? z dohudu do ogrpg-gui dodaj?c j? do mety i linijki 4, 5, 6 (sprawdz czy sa u ciebie takie same, moze linijki mi sie pomylily) zmie? na
local dxfont0_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 18 )
a jak mam to przenies? wytluamcz doklanie jak mozessz
Wysłany: 2018-09-09, 20:15
_jvneczek
Wiek: 22 Na forum: 4325 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
CinusPL , pliki .fx usu? z mety.
Podpis
Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021
Wysłany: 2018-09-09, 20:18
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Kopiujesz plik BebasNeue.otf do skryptu ogrpg-gui i w mecie od skryptu ogrpg-gui dopisujesz
Kod:
<file src="BebasNeue.otf" />
Nast?pnie w kodzie ogrpg-gui / gui_c.lua zmieniasz
local dxfont0_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 18 )
na
local dxfont0_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 18 )
Wysłany: 2018-09-09, 20:27
CinusPL
Wiek: 26 Na forum: 2832 dni Posty: 20
Nick w MP: CinusPL
"Thinks" napisał/a :CinusPL , pliki .fx usu? z mety.
[scroll][/scroll]
zrobi?e to
[ Dodano : 2018-09-09, 20:34 ]
"Wilq" napisał/a :Kopiujesz plik BebasNeue.otf do skryptu ogrpg-gui i w mecie od skryptu ogrpg-gui dopisujesz
Kod:
<file src="BebasNeue.otf" />
Nast?pnie w kodzie ogrpg-gui / gui_c.lua zmieniasz
local dxfont0_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 18 )
na
local dxfont0_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 18 )
zrobi?em tak
[ Dodano : 2018-09-09, 20:38 ]
"Wilq" napisał/a :Kopiujesz plik BebasNeue.otf do skryptu ogrpg-gui i w mecie od skryptu ogrpg-gui dopisujesz
Kod:
<file src="BebasNeue.otf" />
Nast?pnie w kodzie ogrpg-gui / gui_c.lua zmieniasz
local dxfont0_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 18 )
na
local dxfont0_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 18 )
jak tak zrobilem w debugscript dostaje takie b?edy:
[ Dodano : 2018-09-09, 20:40 ]
i jeszcze mam pytanie jak dac sobie admina? bo jak wpisze /admins to mam ze brak administracji
[ Dodano : 2018-09-09, 20:45 ]
Dostaje teraz jeszcze takie b?edy:
[ Dodano : 2018-09-09, 21:54 ]
"Wilq" napisał/a :Kopiujesz plik BebasNeue.otf do skryptu ogrpg-gui i w mecie od skryptu ogrpg-gui dopisujesz
Kod:
<file src="BebasNeue.otf" />
Nast?pnie w kodzie ogrpg-gui / gui_c.lua zmieniasz
local dxfont0_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( ":dohudu/BebasNeue.otf" , 18 )
na
local dxfont0_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 24 )
local dxfont1_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 28 )
local dxfontxd_BebasNeue = dxCreateFont ( "BebasNeue.otf" , 18 )
Mam jeszcze dwa pytania:
1.Jak nadac sobie admina w dutyadmin bo jak psize /admins to ze nie ma zadnego admina
2.Jak kupie autko w salonie to jest napisane ze trafia do przechowali a w przechowalni go nie ma , jak to naprawic ?
Tagi: its :: your :: world :: debugscript :: błedy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: