ID:263738
 
Code:
mob
verb
Rest()
set category = "Training"
set desc = "Lets you rest up completely"
if(src.stamina >= 35)
src<<"<b><small>You do not need to rest yet."
return
while(src.stamina <= src.maxstamina)
flick("rest",usr)
src.stamina += rand(1,25)
if(src.stamina > src.maxstamina)
src.stamina = src.maxstamina
return


Problem description:
Game Programming\Verbs.dm:40:error:rand:undefined proc
Game Programming\Verbs.dm:35:error::invalid expression

I don't understand why im getting those problems can someone help me fix this?

Never mind i fixed the problems, it was all indent errors.