• 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!

debugs in console

Gregor

New Member
Joined
Feb 29, 2008
Messages
770
Reaction score
3
Location
UK/POLAND
Hello!
I get error in console i use newest version of TFS 0.2.


It say cannot add but its add.
But i think this erros can make lags.

I use this script:
Code:
local Cost = 6500
local RuneId = 2268
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, Cost) == 1 then
backpack = doPlayerAddItem(cid, 2003, 1)
for i = 1, 20 do
doAddContainerItem(backpack, RuneId, 6)
end
else
doPlayerSendCancel(cid, 'You don\'t have enough money.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return 1
end

Thanks a lot
 
Back
Top