Recommended Posts

Posted (edited)

Hello everyone.

I'm trying to use leiizko event manager on my server, it's untouched, original as it was download, but getting this error

undefined is not an array index.

Would love to give me a hand how to fix or what else needs to be added (and where)

For example this one.

addConnectEvent( event )
{
	level.events[ "PlayerConnect" ][ level.events[ "PlayerConnect" ].size ] = event;
}

 I do thread leiizko\events::addConnectEvent( ::onSpect);

Thank you.

Edited by LezForo

Share this post


Link to post
Share on other sites
Posted (edited)

It is called in my main.gsx file:
thread leiizko\events::init(); , and my main.gsx in globallogic obv.
Still same error.

My spect.gsx file :

init()
{
thread leiizko\events::addConnectEvent( ::onSpect); 
}

onSpect()
{

self endon( "disconnect" );

...
}

 

 

 

Edited by LezForo

Share this post


Link to post
Share on other sites

Your spect.gsx script is then most likely being called prior to events init function.

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.   Paste as plain text instead

  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.