• 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 Error mailbox help please

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
Lua:
[30/04/2022 23:13:55] [Error - Action Interface]
[30/04/2022 23:13:55] data/actions/scripts/rwitems.lua:onUse
[30/04/2022 23:13:55] Description:
[30/04/2022 23:13:55] data/actions/scripts/rwitems.lua:7: attempt to call global 'doShowTextWindow' (a nil value)
[30/04/2022 23:13:55] stack traceback:
[30/04/2022 23:13:55]     data/actions/scripts/rwitems.lua:7: in function <data/actions/scripts/rwitems.lua:3>

Lua:
-- example of read/write on items--
  
   function onUse(cid, item, frompos, item2, topos)
       rw = getItemRWInfo(item.uid)
       if rw and 1 then
           if rw and 2 then
               doShowTextWindow(item.uid,100,1)
           else
               doShowTextWindow(item.uid,0,0)
           end
       else
           if item.itemid == 2598 then
               doShowTextWindow(item.uid,0,0)
           end
       end
  
       return 1
    
   end
 
no send parcel

function doShowTextDialog(cid, itemId, text) no function no sennd parcel

Only 12 city

script I use

mailboxDisabledTowns = "-1"

Lua:
-- example of read/write on items--
 
   function onUse(cid, item, frompos, item2, topos)
       rw = getItemRWInfo(item.uid)
       if rw and 1 then
           if rw and 2 then
               doShowTextWindow(item.uid,100,1)
           else
               doShowTextWindow(item.uid,0,0)
           end
       else
           if item.itemid == 2598 then
               doShowTextWindow(item.uid,0,0)
           end
       end
 
       return 1
  
   end
Screenshot_3.png
 
Last edited:
Back
Top