ID:264671
 
Code:
mob/proc/levelup(LU)
Level = Level + LU

if(usr.Wins==5)
usr.LU(1)


Problem description: I cannot get my proc to work, it says line 5, (usr.LU(1)) is an undefined proc. Can someone help me?

You did not define an LU proc.

Additionally, you are using usr in procs. This is wrong. You should be using src instead.
i know this isnt what your asking for how ever as a demo

proc Leveling_up()
if(src.exp>=src.maxexp)
src<<"<B>You gained a level!"
src.Level++
src.exp=0
src.maxexp+=src.maxexp/5
src.Strength++
src<<"Strength + 1"
src.Defense++
src<<"Defense + 1"
src.Health+=20
src.MaxHealth+=20
src<<"Health + 20"
blah blah blah some random code here
if src.win==1
Leveling_up()

thats how you would call the proc and as Garthor said notice how i used Src insted of usr becuase usr may not always be pointing to that person