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
-
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
-
Hol van definiálva a \'killer\' ?
-
Zuhanással haltál meg, vagy valaki lelőtt?
Dupla üzenet összevonva ekkor: 2014. október 30. - 19:14:55
Hol van definiálva a \'killer\' ?
function DeathLog(ammo, killer, killerweapon, bodypart)
-
Egy moderátor zárhatja, Attila Október 21-én volt fent utoljára.
-
[mod]Zárom.[/mod]