View Single Post
  #9  
Old 02-18-2012, 07:56 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
So it's just for a person reading it to look easier? why not //player after it? Just curious is there any advantages?
'level' on it's own could refer to this.level (NPC) or player.level depending on where the code is.

You can eliminate that possible confusion by using the appropriate prefix in your code.

Also comments are supposed to help people understand what's going on in your code not help add confusion with an obscure looking comment.

The only time I don't use the player prefix is with client and clientr flags.
__________________
Quote:
Reply With Quote