Szerző Téma: Kill log hiba  (Megtekintve 926 alkalommal)

Kill log hiba
« Dátum: 2014. Október 17. - 22:18:44 »
0
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

Kill log hiba
« Válasz #1 Dátum: 2014. Október 26. - 23:25:48 »
0
Hol van definiálva a \'killer\' ?

Nem elérhető Nexus

Kill log hiba
« Válasz #2 Dátum: 2014. Október 30. - 18:59:49 »
0
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)
« Utoljára szerkesztve: 2014. Október 30. - 19:14:55 írta NeXuS »

Nem elérhető Nexus

Kill log hiba
« Válasz #3 Dátum: 2014. November 14. - 20:36:06 »
0
Egy moderátor zárhatja, Attila Október 21-én volt fent utoljára.

Nem elérhető Toxic

  • 798
  • #elfújalágyszellő
    • Profil megtekintése
Kill log hiba
« Válasz #4 Dátum: 2014. November 14. - 20:36:48 »
0
[mod]Zárom.[/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal