ID:143833
 
Code:
          
usr.random = rand(1,20)
if(random == 5||random==1)
usr.taiexp += rand(1,3)
usr.taiup()
usr.exp += rand(1,2)
usr.Levelup()
sleep(2)
usr.canattack=1

Problem description:
it alwas says
error:random:undefined var

my question: Why it says: error:random:undefined var
It means that it has no idea what this thing you call 'random' is. You should probably define it as a var if you want to use it.
In response to Foomer
got it already^^
In response to DBZPOozaru
You could post more of the code...