Results 1 to 10 of 28

Thread: potential infinite loop in script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    You obviously didnt write this script yourself or you would know this.

    Check your strtok length for >=1 instead of != 2
    Then, set reason to "" if the strtok-array[1] is undefined, or to the strtok-array[1] if it is defined.
    Done.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by IzNoGoD View Post
    You obviously didnt write this script yourself or you would know this.

    Check your strtok length for >=1 instead of != 2
    Then, set reason to "" if the strtok-array[1] is undefined, or to the strtok-array[1] if it is defined.
    Done.
    I already did that
    Code:
                if(info.size != 2 && info.size != 1) 
                    continue;
    
    	    if(info.size==1)
    	    {         
                name1 = getnormalname(info[0]);
                name2 = "No reason";
    	    } 
    	    else
    	    {
                name1 = getnormalname(info[0]);
                name2 = getnormalname(info[1]); 
    	    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •