JohnJohn90
New Member
[23/5/2012 12:0:7] [Error - CreatureScript Interface]
[23/5/2012 12:0:7] domodlib('t')
[23/5/2012 12:0:7] function onPrepareDeath(cid)
[23/5/2012 12:0:7] if getPlayerStorageValue(cid, t.a[-1].b) == 1 then
[23/5/2012 12:0:7] setPlayerStorageValue(cid, t.a[-1].b, -1)
[23/5/2012 12:0:7] setGlobalStorageValue(t.b, 1)
[23/5/2012 12:0:7] elseif getPlayerStorageValue(cid, t.a[1].b) == 1 then
[23/5/2012 12:0:7] setPlayerStorageValue(cid, t.a[1].b, -1)
[23/5/2012 12:0:7] setGlobalStorageValue(t.b, -1)
[23/5/2012 12:0:7] end
[23/5/2012 12:0:7] return true
[23/5/2012 12:0:7] end
[23/5/2012 12:0:7] nPrepareDeath
[23/5/2012 12:0:7] Description:
[23/5/2012 12:0:7] [string "LuaInterface::loadBuffer"]:3: attempt to index global 't' (a nil value)
[23/5/2012 12:0:7] stack traceback:
[23/5/2012 12:0:7] [string "LuaInterface::loadBuffer"]:3: in function <[string "LuaInterface::loadBuffer"]:2>
I have this console error if anybody can help plz do so! i will rep++
[23/5/2012 12:0:7] domodlib('t')
[23/5/2012 12:0:7] function onPrepareDeath(cid)
[23/5/2012 12:0:7] if getPlayerStorageValue(cid, t.a[-1].b) == 1 then
[23/5/2012 12:0:7] setPlayerStorageValue(cid, t.a[-1].b, -1)
[23/5/2012 12:0:7] setGlobalStorageValue(t.b, 1)
[23/5/2012 12:0:7] elseif getPlayerStorageValue(cid, t.a[1].b) == 1 then
[23/5/2012 12:0:7] setPlayerStorageValue(cid, t.a[1].b, -1)
[23/5/2012 12:0:7] setGlobalStorageValue(t.b, -1)
[23/5/2012 12:0:7] end
[23/5/2012 12:0:7] return true
[23/5/2012 12:0:7] end
[23/5/2012 12:0:7] nPrepareDeath
[23/5/2012 12:0:7] Description:
[23/5/2012 12:0:7] [string "LuaInterface::loadBuffer"]:3: attempt to index global 't' (a nil value)
[23/5/2012 12:0:7] stack traceback:
[23/5/2012 12:0:7] [string "LuaInterface::loadBuffer"]:3: in function <[string "LuaInterface::loadBuffer"]:2>
I have this console error if anybody can help plz do so! i will rep++