DarkRulez 0 Report post Posted September 10, 2017 (edited) im trying to instal the cloak by xero and verax and i get this error whats wrong here? function Cloaks:Init() if (file_exists)(Cloaks.DB) == false) then print('Creating Admiral Cloak Database') table.save({},Cloaks.DB, FILE_WRITE) end end Edited September 10, 2017 by DarkRulez Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted September 10, 2017 (edited) Console well explained need about the error. Line 54, near ")" parentheses: if (file_exists)(Cloaks.DB) == false) then ur error located here, try finding it and reply here. Note: np++ can easily identify that, put cursor near parentheses, if it red it's bcz missing one or u added other and didn't closed. Edited September 10, 2017 by Satan Quote Share this post Link to post Share on other sites
Ximboliex 85 Report post Posted September 10, 2017 Hi @DarkRulez !, try whit if (file_exists(Cloaks.DB) == false) then Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted September 10, 2017 @Ximboliex Let he find it, lol gay bitch! Quote Share this post Link to post Share on other sites
DarkRulez 0 Report post Posted September 10, 2017 (edited) @Ximboliex now appear attemp to call global file exist a nil value Edited September 10, 2017 by DarkRulez Quote Share this post Link to post Share on other sites
Ximboliex 85 Report post Posted September 10, 2017 47 minutes ago, Satan said: @Ximboliex Let he find it, lol gay bitch! Hahahahaha Quote Share this post Link to post Share on other sites
Ximboliex 85 Report post Posted September 10, 2017 46 minutes ago, DarkRulez said: @Ximboliex now appear attemp to call global file exist a nil value Check if you has serialize.lua run on your server. Quote Share this post Link to post Share on other sites
DarkRulez 0 Report post Posted September 10, 2017 @Ximboliex i dont have it Quote Share this post Link to post Share on other sites
x3w0r 33 Report post Posted September 10, 2017 function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end Add this in the bottom of FUNCTION.LUA Path:resource/script/calculate/ Quote Share this post Link to post Share on other sites
DarkRulez 0 Report post Posted September 10, 2017 @x3wor still appearing the error Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted September 19, 2017 В 10.09.2017 в 23:14, DarkRulez сказал: @x3wor still appearing the error Where do you include Cloak script? Make sure that you include function.lua before Cloak script Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites