Jump to content
DarkRulez

admiral cloak by xero and verax

Recommended Posts

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

 

Captura.JPG

Edited by DarkRulez

Share this post


Link to post
Share on other sites

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 by Satan

lelouch_signature_by_vahntheknight-d4uafwj.png

Share this post


Link to post
Share on other sites
	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/

Share this post


Link to post
Share on other sites
В 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


Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...