[Resolved] Normal != Normal?

Discussion in 'Server and Client Scripting' started by Blastcore, Jul 25, 2013.

  1. Blastcore

    Blastcore Developer

    Joined:
    Jul 19, 2010
    Messages:
    763
    Likes Received:
    1
    I remind old days posting here. But blarg, this issue is annoying. Even Google failed.

    I'll make it simple and easy. this.TypeNames[0] is "Normal", it's obviously, inside of an array. TypeName is also "Normal". Whatever, seems like Normal != Normal.

    Code (text):
    1.    
    2. sys.sendAll("Are they equal? " + (this.TypeNames[0] == TypeName));
    3. sys.sendAll("TypeNames[0]: " + (this.TypeNames[0]));
    4. sys.sendAll("TypeNames[0] typeof: " + (typeof(this.TypeNames[0])));
    5. sys.sendAll("TypeName: " + (TypeName));
    6. sys.sendAll("TypeName typeof: " + (typeof(TypeName)));
    7. sys.sendAll(this.TypeNames[0].replace(TypeName, ""));
    8.  
    Results:

     
    Last edited: Jul 25, 2013
  2. Blastcore

    Blastcore Developer

    Joined:
    Jul 19, 2010
    Messages:
    763
    Likes Received:
    1
    Fixed. It was the \r\n in the file.