Jump to content
Sign in to follow this  
kazikas

GmSystem V2 problem please help

Recommended Posts

Hello ,

 

I'm new to this I'm just creating a server to play with my friends I'm trying to install GMSystem extension to forge items easier and faster but I'm having a problem i loaded the extension with dofile(GetResPath("script\GMSystem\Base.lua")) , and it load successfully but when i try to use login command &lua Login("AccountName","PassWord","CharName") nothing happens in game but in gameserver cmd i get this error :

...rce/script\GMSystem\Variables\LogsFunctions\Logs.lua:176: attempt to index global `Character' (a nil value)

 

this is the code im getting error in

function GetName(name) -- Orginal Name GetPlayerByName(name)
	if Character.Role[name].characterName ~= nil then
		return Character.Role[name].characterName
	end
end

 

Share this post


Link to post
Share on other sites

This might be an error somewhere in the GM system code. As the error message says, a value is nil, when it should be something else. Pretty hard to tell without seeing the whole code.

Share this post


Link to post
Share on other sites

Hello @kazikas!

 

Where is the variable Character defined?


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.

Sign in to follow this  

×
×
  • Create New...