my problem is that I get this in console
and this I have in action
hopefully help me be grateful with rep ++
Code:
[16/02/2012 22:52:54] [Error - Action Interface]
[16/02/2012 22:52:54] data/actions/scripts/snakesys.lua:onUse
[16/02/2012 22:52:54] Description:
[16/02/2012 22:52:54] data/actions/scripts/snakesys.lua:2: attempt to index global 'SNAKE' (a nil value)
[16/02/2012 22:52:54] stack traceback:
[16/02/2012 22:52:54] data/actions/scripts/snakesys.lua:2: in function <data/actions/scripts/snakesys.lua:1>
and this I have in action
Code:
function onUse(cid, item, frompos, item2, topos)
if not isPlayer(getGlobalStorageValue(SNAKE.freeglobalstorage)) then
doTeleportThing(cid,SNAKE.controlpos)
SNAKE.timer(cid,1,nil,item.actionid == 0 and 500 or item.actionid)
doPlayerSendTextMessage(cid,25,'manten la tecla ctrl + las teclas de flecha para mover la serpiente.')
SNAKE.generateFood()
else
doPlayerSendTextMessage(cid,25,'Espere alguien salir.')
end
end
hopefully help me be grateful with rep ++