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

Lua Auction System (getItembyName) problem.

Dibis

Member
Joined
Dec 1, 2022
Messages
73
Reaction score
16
Location
POLAND
Hello,
If I say: 12 bat wings have console warning: Item not found.
If say: 12 bat wing - all working good.

How remove console error?
This is my line to this "IF"

Lua:
  local item = getItemIdByName(t[2])
                if(not item) then
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.")
                        return true
                end
 
Try by changing this getItemIdByName(t[2]) to this getItemIdByName(t[2], false)
 
Back
Top