View Single Post
  #12  
Old 07-01-2002, 11:05 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Quote:
Originally posted by adam

Also you need to use " == " instead of " = " in an if statement.
Actually, that's not compulsory. Scripts will run fine online and offline with a single equals. It's only suggested in the documentation to help keep with the C++/Java syntax.

Quote:
npcprogramming.doc:
You can also use some other symbols like ':=' for assignment and a single '=' for checking equality, but it's not recommended (to keep compability to the Java/C++ syntax).
It's suggested you use two. Not required.

If this sounded vaguely patronizing, then I apologize. No insult was meant. Just getting my point across.
Reply With Quote