• 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!

Action Snake system

Hello mock, iam very happy if you could help me :)


[09/08/2010 18:53:39] [Error - Action Interface]
[09/08/2010 18:53:39] In a timer event called from:
[09/08/2010 18:53:39] data/actions/scripts/tools/snakesys.lua:eek:nUse
[09/08/2010 18:53:39] Description:
[09/08/2010 18:53:39] (luaDoRemoveItem) Item not found

Help please.


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,'Hold key CTRL and use the arrows to control snake.')
                SNAKE.generateFood()
        else
                doPlayerSendTextMessage(cid,25,'Please wait.')
        end
end
 
i think better will be if u are a box and other boxes follow u
 
Well, it works but this error pops up every time somebody plays and I think it may be causing my server to crash.

Code:
[Error - Action Interface]
In a timer event called from:
data/actions/scripts/snakesys.lua:onUse
Description:
(luaDoRemoveItem) Item not found

[Error - Action Interface]
In a timer event called from:
data/actions/scripts/snakesys.lua:onUse
Description:
(luaDoRemoveItem) Item not found
 
i got this:

[26/12/2010 18:21:55] [Error - LuaScriptInterface::loadFile] data/actions/scripts/snakesys.lua:10: 'end' expected (to close 'function' at line 1) near '<eof>'
[26/12/2010 18:21:55] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/snakesys.lua)
[26/12/2010 18:21:55] data/actions/scripts/snakesys.lua:10: 'end' expected (to close 'function' at line 1) near '<eof>'
 
mock help me, look this error
[12/06/2011 14:46:46] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/snakesys.lua)
[12/06/2011 14:46:46] data/actions/scripts/snakesys.lua:2: ')' expected near 'rage'

please i want snake system '-' thanks very much
 
o unico erro que deu no meu foi isso
[12/06/2011 14:46:46] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/snakesys.lua)
[12/06/2011 14:46:46] data/actions/scripts/snakesys.lua:2: ')' expected near 'rage'
se alguem poder me ajudar '-' ja fiz tudo só falta arruma essa ***** de bug
 
Nice work

tango-bear-snake-2.jpeg
 
Hey mock!

You have the hightscores for snake? for modern acc?
I need see players records in snake!! :D
thanks.
 
Back
Top