var/damage = rand(1,6)
Problem description:
When compiled in the project, this line gives me an error that says that rand() is an undefined proc. Is there any way I can fix this?
ID:142217
Jul 22 2008, 10:52 pm (Edited on Jul 22 2008, 11:36 pm)
|
|
Code:
var/damage = rand(1,6)
Problem description: When compiled in the project, this line gives me an error that says that rand() is an undefined proc. Is there any way I can fix this? |
You don't need the pather operator : to access a global proc
just use var/damage = rand(1,6) |
In response to StolenSoul
|
|
Nevermind. I have no clue what the problem was, but it resolved itself when I removed an indent. I have no clue why it did it, because normally it would give me an "Inconsistent indentation" if I didn't have it there... Strange... Nevertheless, thank you for your input.
|
-SubZeroChaos