null

Started by kokia, Oct 15, 2015, 02:13 PM

Previous topic - Next topic

kokia

error is trying to set null accinfo!
function AccInfo( player )
{
      try{
  local id = player.ID;
  local ip = player.UniqueID;
  if ( GetLevel( player ) >= 1 )
  {
      if ( ip != GetUID( player ) )
  {
              aMessage("[#ffffff]Welcome back! Type /login to login.",player);
  status[ player.ID ].IsReg = true;
  status[ player.ID ].IsLogged = false;
  }
  else if ( ip == GetUID( player ) )
  {
             status[ player.ID ].IsReg = true;
  status[ player.ID ].IsLogged = true;
  aMessage("Welcome back! You're auto-logged in.",player);
  }
 
  }
  else
  {
    aMessage("You're not registered, Please type /register <password> in order to play.",player);
  }
  }
  catch(e) print( "AccInfo Error: " + e );
}
i hv function aMessage and other things created!!
help plzz

DizzasTeR

remove try { } catch(e) from the script, then run it, afterwards post the lines where the error is coming at also specify the lines.

kokia