I just updated to r480 and got this error:
Code: Select all
scripts\rom\bot.lua:408: attempt to call method 'getAmmunitionCount' (a nil value)
Code: Select all
scripts\rom\bot.lua:408: attempt to call method 'getAmmunitionCount' (a nil value)
I'll send admin a patch for it now.raff wrote:Hi,
I just updated to r480 and got this error:
Code: Select all
scripts\rom\bot.lua:408: attempt to call method 'getAmmunitionCount' (a nil value)
Code: Select all
function CInventory:getAmmunitionCount()
self.EquipSlots[ 9 ]:update(); -- 9 Ammunition slot
local count = self.EquipSlots[ 9 ].ItemCount;
if count == nil then
count = 0;
end;
return count;
end;
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests