GTA Közösség - A magyar GTA fórum

Multi Theft Auto (MTA) => MTA: Szerverfejlesztés => Archívum => A témát indította: AttilaHUN - 2014. Október 17. - 22:18:44

Cím: Kill log hiba
Írta: AttilaHUN - 2014. Október 17. - 22:18:44
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
Cím: Kill log hiba
Írta: Duracell - 2014. Október 26. - 23:25:48
Hol van definiálva a \'killer\' ?
Cím: Kill log hiba
Írta: Nexus - 2014. Október 30. - 18:59:49
Zuhanással haltál meg, vagy valaki lelőtt?

Dupla üzenet összevonva ekkor: 2014. Október 30. - 19:14:55

Idézetet írta: Duracell date=1414362348\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"55672\" data-ipsquote-contentclass=\"forums_Topic
Hol van definiálva a \'killer\' ?
 
function DeathLog(ammo, killer, killerweapon, bodypart)
Cím: Kill log hiba
Írta: Nexus - 2014. November 14. - 20:36:06
Egy moderátor zárhatja, Attila Október 21-én volt fent utoljára.
Cím: Kill log hiba
Írta: Toxic - 2014. November 14. - 20:36:48
[mod]Zárom.[/mod]