-
raff
- Posts: 96
- Joined: Thu Jan 22, 2009 10:46 am
#41
Post
by raff » Wed Jan 13, 2010 6:24 pm
Administrator wrote:Try changing line 474 of inventory.lua to this:
Code: Select all
if( slotitem and tonumber(slotitem.Id) > 0 ) then
That should fix it.
Thanks, but it didnt fixed it :/. I just got this error again
Code: Select all
Mapping inventory (bagslot 1 to 60)...
100% [**************************************************]
D:/bot/rom/scripts/classes/inventory.lua:474: attempt to compare number
with nil
-
Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
#42
Post
by Administrator » Thu Jan 14, 2010 4:21 am
raff wrote:
Thanks, but it didnt fixed it :/. I just got this error again
Try:
Code: Select all
if( slotitem and (slotitem.Id or 0) > 0 ) then
-
raff
- Posts: 96
- Joined: Thu Jan 22, 2009 10:46 am
#43
Post
by raff » Thu Jan 14, 2010 9:44 pm
Administrator wrote:raff wrote:
Thanks, but it didnt fixed it :/. I just got this error again
Try:
Code: Select all
if( slotitem and (slotitem.Id or 0) > 0 ) then
This seems to work. No errors today
, thanks!
Who is online
Users browsing this forum: No registered users and 3 guests