Results 1 to 10 of 29

Thread: best player map

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
    Quote Originally Posted by megazor View Post
    Secondly, in CoD2 you have to define all variables outside if statements.
    Not true.

    PHP Code:
    if(== b)
         
    1;
    else
         
    2;
    iprintln(c); 
    will not produce errors

    but
    PHP Code:
    if(== b)
         
    1;
    else if(
    != b)
         
    2;
    iprintln(c); 
    will produce errors, for the script cannot be sure that it is actually called, although you can see it will.

    also,

    PHP Code:
    somerandomcode();
    return;
    morerandomcode(); 
    will give the "unreachable code" error.

    PHP Code:
    somerandomcode();
    if(
    true)
         return;
    morerandomcode(); 
    will not.

    CoD2 is weird.

  2. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (12th July 2013),RobsoN (12th July 2013)

Posting Permissions

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