Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2020-02-22, 23:01


kabanos236







Wiek: 28
Na forum: 3769 dni
Posty: 42
Nick w MP: woper

Piwa: 7

Respekt: 50

Witam serdecznie pisz? do was z pro?b? o pomoc w skryptach Mam problem z wieloma skryptami w gm Ems a mianowicie w ka?dym w debugscript wy?wietla si? "es-wodne_oddychanie/s_water.lua:9: Bad argument @ 'setPedStat' [Expected element at argument 1, got nil]" lub DXdrawText do ka?dego pliku jest inny napis po @'

oraz na docherty s? straszne spadki fps prosz? o pomoc w nagrod? dam

:piwo: R*

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-02-22, 23:10


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

No w setPedStat musisz w pierwszym argumencie poda? gracza / ped.
Z draw textami wklej b??dy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-02-22, 23:21


kabanos236







Wiek: 28
Na forum: 3769 dni
Posty: 42
Nick w MP: woper

Piwa: 7

Respekt: 50

"Wilq" napisał/a:

No w setPedStat musisz w pierwszym argumencie poda? gracza / ped.
Z draw textami wklej b??dy.


gdzie znajde wszystkie logi z b??d?w debugscript ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-02-22, 23:38


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

W mtaserver.conf:
Kod:

<scriptdebuglogfile>logs/scripts.log</scriptdebuglogfile>
<scriptdebugloglevel>3</scriptdebugloglevel>


i wtedy logi b?d? w
server>mods>deathmatch>logs>scripts.log

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-02-22, 23:54


kabanos236







Wiek: 28
Na forum: 3769 dni
Posty: 42
Nick w MP: woper

Piwa: 7

Respekt: 50

"Wilq" napisał/a:

W mtaserver.conf:
Kod:

<scriptdebuglogfile>logs/scripts.log</scriptdebuglogfile>
<scriptdebugloglevel>3</scriptdebugloglevel>


i wtedy logi b?d? w
server>mods>deathmatch>logs>scripts.log


jako? sobie z tym poradzi?em b?edy naprawi?em , ale czy m?g? by? mi pomoc z tymi fps na docherty mam tam od 2 fps do max 15 i nie wiem gdzie jest b??d

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-02-23, 06:25


Kacperiusz

.






Wiek: 23
Na forum: 2770 dni
Posty: 113

Piwa: 205

Respekt: 50

kabanos236, A masz jakie? mapy w??czone?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-02-23, 10:32


kabanos236







Wiek: 28
Na forum: 3769 dni
Posty: 42
Nick w MP: woper

Piwa: 7

Respekt: 50

"Kacperiusz" napisał/a:

kabanos236, A masz jakie? mapy w??czone?

to nie wina maap lecz skrypty es-pojazdy lecz nie wiem co powoduje takie lagi na docherty


Kod:

local function pojazdPusty(veh)
-- local occupants = getVehicleOccupants(veh)
-- local seats = getVehicleMaxPassengers(veh)
-- if (not seats) then return true end
-- for i=0,seats do
-- local occupant = occupants[i]
-- if occupant and (getElementType(occupant)=="player" or getElementType(occupant)=="ped") then
-- return false
-- end
-- end
-- return true
local occupant=getVehicleOccupant(veh, 0)
if occupant and isElement(occupant) then
if (getElementType(occupant)=="player") then
return false
end
end
return true
end

setTimer(function()
for i,v in ipairs(getElementsByType("vehicle")) do
--if getElementData(v, "dbid") then -- je?eli ma dzia?a? tylko na pojazdy prywatne to
if (pojazdPusty(v)) then
setVehicleDamageProof(v,true)
else
if not getElementData(source,"pojazdy:zniszczonyWrak") then setVehicleDamageProof(v,false) end
end
--end
end
end, 1000, 1)

addEventHandler ( "onVehicleEnter", root, function(plr,seat)
if seat~=0 then
return
end
if not getElementData(source,"pojazdy:zniszczonyWrak") then setVehicleDamageProof(source, false) end
end)

addEventHandler ( "onVehicleExit", root, function(plr,seat)
if seat~=0 then
return
end
-- if (pojazdPusty(source)) then
if source and isElement(source) then
if (not getVehicleController(source)) then
setVehicleDamageProof(source, true)
setVehicleOverrideLights(source, 1)
else
if getElementData(source,"pojazdy:zniszczonyWrak") then return end
setVehicleDamageProof(source, false)
end
end
end)

addEventHandler("onPlayerQuit", root,
function()
local veh=getPedOccupiedVehicle(source)
if not veh then
return
end
if getElementData(veh,"dbid") then
if (getPedOccupiedVehicleSeat(source)==0) then
setVehicleDamageProof(veh, true)
setVehicleEngineState(veh, false)
setElementFrozen(veh, true)
end
end
end
)


[ Dodano: 2020-02-23, 10:36 ]
"Kacperiusz" napisał/a:

kabanos236, A masz jakie? mapy w??czone?



nie mog? wstawi? za du?o kod?w bo za du?o litera maj? wie? daje link do ca?ego kodu https://www66.zippyshare.com/v/uiAkLVjo/file.html


za pomoc dam :piwo: R*

Postaw piwo autorowi tego posta
 

 
Tagi: coś :: jest :: nie :: tak :: argument :: oraz :: fonts
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » coś jest nie tak z Argument oraz fonts Odpowiedz do tematu

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku