Im using this code from: https://otland.net/threads/mod-mocks-classic-snake-remade-to-mod.177781/
But I get this error when Im trying to start up the server. Anyone has any idea why?
But I get this error when Im trying to start up the server. Anyone has any idea why?
Code:
[16:30:06.186] Description:
[16:30:06.186] [string "sConf = {..."]:8: '}' expected (to close '{' at line 1) near '874'
[16:30:06.186] [Error - TalkAction Interface]
[16:30:06.186] domodlib('snake-Conf')
[16:30:06.186] domodlib('snake-lib')
[16:30:06.186] function onSay(cid, words, param, channel)
[16:30:06.186] if param == "" then
[16:30:06.186] doPlayerSendTextMessage(cid,35, "[Classic Snake]: If you really want to reset your highscore for Classic Snake write: /resetsnake yes")
[16:30:06.187] return true
[16:30:06.187] end
[16:30:06.187] if param == "yes" then
[16:30:06.187] doPlayerSendTextMessage(cid,4, "[Classic Snake]: You have reseted your highscore for Classic Snake.")
[16:30:06.187] db.executeQuery("UPDATE `accounts` SET `snakehigh` = '0' WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
[16:30:06.187] return true
[16:30:06.187] end
[16:30:06.187] end
[16:30:06.187] Description:
[16:30:06.187] [string "sConf = {..."]:8: '}' expected (to close '{' at line 1) near '874'
[16:30:06.187] [Error - TalkAction Interface]
[16:30:06.187] domodlib('snake-Conf')
[16:30:06.187] domodlib('snake-lib')
[16:30:06.187] function onSay(cid, words, param, channel)
[16:30:06.187] if param == "" then
[16:30:06.187] doPlayerSendTextMessage(cid,35, "[Classic Snake]: If you really want to reset the server highscore for Classic Snake write: /rsnakehighscore yes")
[16:30:06.187] return true
[16:30:06.187] end
[16:30:06.187] if (param == "yes" and (getPlayerGuildName(cid) == 'PAG Crew')) then
[16:30:06.187] db.query("UPDATE `game_highscores` SET `snake` = 0 AND 'snakename' = "..getPlayerGUID(cid).." WHERE `id` = 1;")
[16:30:06.187] doPlayerSendTextMessage(cid,4, "[Classic Snake]: You have reseted the server highscore for Classic Snake.")
[16:30:06.187] return true
[16:30:06.187] end
[16:30:06.187] end
[16:30:06.187] Description:
[16:30:06.187] [string "sConf = {..."]:8: '}' expected (to close '{' at line 1) near '874'
[16:30:06.187] [Error - TalkAction Interface]
[16:30:06.187] domodlib('snake-Conf')
[16:30:06.187] domodlib('snake-lib')
[16:30:06.187] function onSay(cid, words, param, channel)
[16:30:06.187] if param == "" then
[16:30:06.187] doPlayerSendTextMessage(cid,35, "[Classic Snake]: If you really want to reset the server highscore for Classic Snake write: /rsnakehighscore yes")
[16:30:06.187] return true
[16:30:06.187] end
[16:30:06.187] if (param == "yes" and (getPlayerGuildName(cid) == 'PAG Crew')) then
[16:30:06.187] db.query("UPDATE `game_highscores` SET `snake` = 0 AND 'snakename' = "..getPlayerGUID(cid).." WHERE `id` = 1;")
[16:30:06.187] doPlayerSendTextMessage(cid,4, "[Classic Snake]: You have reseted the server highscore for Classic Snake.")
[16:30:06.187] return true
[16:30:06.187] end
[16:30:06.187] end
[16:30:06.187] Description:
[16:30:06.187] [string "sConf = {..."]:8: '}' expected (to close '{' at line 1) near '874'
This error from it.