sziasztok!
van egy hiba a scriptembe de nem tudom mi! a log ezt irja ki: Bad argument @ \'getPlayerName\' [Expected element at argument 1, got boolean]
es itt a script:
function DeathLog(ammo, killer, killerweapon, bodypart)
local player = source
local time = getRealTime()
local hour = time.hour
local minute = time.minute
local year = time.year + 1900
local month = time.month
local day = time.monthday
local second = time.second
local deathlog = fileOpen(\"logs/deathlog.txt\",false)
local filesize = fileGetSize(deathlog)
if minute < 10 then
minute = \"0\"..minute..\"\"
end
if deathlog then
fileSetPos(deathlog, filesize)
fileWrite(deathlog,\">>>>Jatekos: \"..getPlayerName(killer)..\" halott: \"..getPlayerName(player)..\" || Datum: \"..day..\".\"..month..\".\"..year..\" || Ora:\"..hour..\":\"..minute..\">>>>\\n\")
fileClose(deathlog)
else
fileCreate(\"logs/deathlog.txt\")
end
end
addEventHandler(\"onPlayerWasted\",getRootElement(),DeathLog)
eloreis koszia valaszokat