Sign in to follow this  
Adam

Editing CJ Admin files...

Recommended Posts

Hey,

 

So we've had this CJ mod based on Semtex CJ mod for quite some time now and I want to get it to work. The problem is that the Admin system is very badly coded and I need some assistance into trying to figure out what is causing one error -

Quote

******* script runtime error *******
cannot cast undefined to int: (file 'jump/_cj_admins.gsx', line 39)
  rank = int(admin[1]);
                  *
called from:
(file 'jump/_codjumper.gsc', line 43)
  player thread jump\_cj_admins::checkAdmin();
                *
started from:
(file 'jump/_codjumper.gsc', line 33)
    level waittill("connected", player);

 

 

Doing some research online shows that it's a pretty simple error but I can't get it to work, no matter what I try and do. Granted my knowledge of scripting is very very limited. I've attached both files below for anyone that could possibly point me in the right direction.

 

Any help on this is much appreciated.

Cheers,

Adam.

 

 

_cj_admins.gsx _codjumper.gsc

Share this post


Link to post
Share on other sites

guids and ranks are read from the file players/admins.txt. seems like that file doesn't exist or is read incorrectly.

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.

Sign in to follow this