Meditate() |
Problem description:
Everything works except after you stop meditating the stats keep going up anyway. How do I stop this from happening?
ID:146630
Apr 8 2005, 9:51 am
|
||
Code:
Problem description: Everything works except after you stop meditating the stats keep going up anyway. How do I stop this from happening? | ||
its definitely the infinite loop problem. How do I fix that? | ||
JoEn00b wrote:
its definitely the infinite loop problem. How do I fix that? Have some kind of cut off point somewhere. if(usr.energy < 100> meditiation(src) But if it's over or equal, then it will not loop again. | |
Meh, show us your code again, or better, come in Chatters sometime and use /showtext. Ignore the DBZ bashers there. (like me <_< )
| |
Ummm... why do you have an argument for that procedure if you're going to use usr and src in it? That's just baaaaad.
And before LummoxJr does it: No put usr in proc. Ungh. | |
There >_> I would comment it out to the max but it's pretty simple to understand. -Ryan | ||
-Ryan