
03-21-2002, 09:45 PM
|
Darth Cucumber
|
 |
Join Date: Mar 2001
Location: At School
Posts: 2,874
|
|
It is wise to set constants in your scripts so you know WHY you have a number where you have it...
such as
if(created) pi = 3.1415;
so you know instead of having to type 3.1415 every time you want to use pi, just type pi its far more understandable.
And ammon, Why us % (mod) in that way? Itlowers the general efficiency of the script, thx kai for pointing this out...
Its not supose to be used in that way. rather in an if statement.
you sghould just do if(this.a > blah) this.a = 0; |
__________________
subliminal message: 1+1=3
|
|
|