• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows Can you please help me with this error?

rakan95

Hoster
Joined
Feb 1, 2013
Messages
25
Reaction score
0
Location
KSA
Hello Otland.
Whenever someone kills someone on my server........he never dies instead he get's hp 0 then goes back to something like 5 or 10 and then he gets killed again but never actually die!!!!! So the thing that I am getting on my gui.....is this:

[28/02/2013 17:00:08] [Error - CreatureScript Interface]
[28/02/2013 17:00:08] buffer:eek:nKill
[28/02/2013 17:00:08] Description:
[28/02/2013 17:00:08] [string "loadBuffer"]:104: attempt to index a number value
[28/02/2013 17:00:08] stack traceback:
[28/02/2013 17:00:08] [string "loadBuffer"]:104: in function <[string "loadBuffer"]:6>
[28/02/2013 17:00:09] mysql_real_query(): SELECT `invited_to`, `invited_by`, `in_war_with`,`war_time` FROM `guilds` WHERE `id` = 6 - MYSQL ERROR: Unknown column 'invited_to' in 'field list' (1054)

There is a script that I am using called "Owned" it is when someone dies he get's "owned" message.........Do you think it is from that script??? :blink:
Please help me out
 
Post both your ondeath script and your owned script please
Here you go!: This is named playerdeath.lau
PHP:
function onDeath(cid, corpse, deathList)

local strings = {""}
local t, position = 1, 1
local deathType = "killed"
local toSlain, toCrushed = 3, 9

if #deathList >= toSlain then
	deathType = "slain"
elseif #deathList >= toCrushed then
	deathType = "crushed"
end
for _, pid in ipairs(deathList) do
	strings[position] = t == 1 and "" or strings[position] .. ", "
	strings[position] = strings[position] .. getCreatureName(pid) .. ""
		t = t + 1
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)
end

	return true
end
This is called owned.lau
PHP:
local function sendLetter(p)
	   local pos = p.pos
	   local letter = p.letter
	   doSendAnimatedText(pos, letter, TEXTCOLOR_RED)
end
 
function onPrepareDeath(cid, deathList)
	   local letters = {"Owned!"}
	   for i = 1, #letters do
			 addEvent(sendLetter, i * 150, {pos = getCreaturePosition(cid), letter = letters[i]})
	   end
	   return true
end
 
Back
Top