What's new

TFS 0.3.6 Wyskakuje blad na silniku jak ktos padnie !

kufar

User
Joined
Dec 13, 2009
Messages
23
Reaction score
0
witam !
wyskakuje mi taki blad na silniku jesli ktos padnie:

[Error - CreatureScript Interface]
data/creaturescripts/scripts/playerdeath.lua:eek:nDeath
Description:
(luaGetCreatureName) Creature not found

[Error - CreatureScript Interface]
data/creaturescripts/scripts/playerdeath.lua:eek:nDeath
Description:
(luaGetCreatureName) Creature not found

[Error - CreatureScript Interface]
data/creaturescripts/scripts/playerdeath.lua:eek:nDeath
Description:
(luaGetCreatureName) Creature not found
mysql_real_query(): INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `altkilled_by`) VALUES (40, 1282245390, 24, '', ''); - MYSQL ERROR: Unknown column 'time' in 'field list' (1054)

PROSZE O POMOC ! DAM REPUTA !
 

Eturl

We shall know no fear!
Joined
May 21, 2008
Messages
2,280
Reaction score
463
Age
32
Odp: TFS 0.3.6 Wyskakuje blad na silniku jak ktos padnie !

Wklej to do playerdeath zamiast tamtego
Code:
function onDeath(cid, corpse, deathList)

local strings = {""}
local t, position = 1, 1

local deathType = "killed"
local toSlain, toCrushed, toEliminated = 3, 9, 15

if #deathList >= toSlain and #deathList < toCrushed then
deathType = "slain"
elseif #deathList >= toCrushed and #deathList < toEliminated then
deathType = "crushed"
elseif #deathList >= toEliminated then
deathType = "eliminated"
end

for _, pid in ipairs(deathList) do
if isCreature(pid) == true then
strings[position] = t == 1 and "" or strings[position] .. ", "
strings[position] = strings[position] .. getCreatureName(pid) .. ""
t = t + 1
else
strings[position] = t == 1 and "" or strings[position] .. ", "
strings[position] = strings[position] .."a field item"
t = t + 1
end
end

for i, str in ipairs(strings) do
if(str:sub(str:len()) ~= ",") then
str = str .. "."
end

msg = getCreatureName(cid) .. " was " .. deathType .. " at level " .. getPlayerLevel(cid) .. " by " .. str
end

for _, oid in ipairs(getPlayersOnline()) do
doPlayerSendChannelMessage(oid, "Death channel", msg, TALKTYPE_CHANNEL_O, CHANNEL_DEATH)

local aol = getPlayerSlotItem(cid, 2)
if (aol.itemid == 2173) then
doRemoveItem(aol.uid, 1)
end
end
return true
end
 

kufar

User
Joined
Dec 13, 2009
Messages
23
Reaction score
0
Odp: TFS 0.3.6 Wyskakuje blad na silniku jak ktos padnie !

Dzi?ki wielkie, pomog?o.
Leci reput.

Zamykam Temat.
 
Top