ID:263732
 
Code:
mob
proc
levelup()
if(src.exp>=src.max_exp)
problem with this --> src.level+=1
src.exp = 0
src.max_exp+=rand(250,500)
makeHunter()
makeJounin()
Skills()
src<<"<font size=1><font color=white><b>Level Up +1"
src<<"<font size=1><font color=white><B>----------------"
src<<"<font size=1><font color=white><B>You Reach level [usr.level]"
src<<"<font size=1><font color=white><b>Skill Points +5"
src<<"<font size=1><font color=white><b>Next level at [max_exp]"
src.Skill_Points+=5
src.taiexp+=rand(10,25)
src.taiup()
src.tai=src.Mtai
src.ninexp+=rand(10,25)
src.ninup()
src.nin=src.Mnin
src.genexp+=rand(10,25)
src.gen=src.Mgen
src.genup()
src.maxhealth+=rand(10,100)
src.Mchakra+=rand(10,50)


Problem description:
runtime error: type mismatch
proc name: levelup (/mob/proc/levelup)
source file: BS.dm,541
usr: Yash (/mob)
src: Yash (/mob)
call stack:
Yash (/mob): levelup()
Heavy Dummy (/obj/Heavy_Dummy): Punch Dummy()

I have no clue what to do o.O

did you put ""s around src.level somewhere else in the code?

and you have usr in one of your output lines, should be src
In response to Falacy
lol that works fine but this runtime error started happening when i put a new scoreboard in o.O
yeaaaaaa
and do u set level="#" anywhere in it <.<

edity: the src and usr of a proc arent always the same
In response to Falacy
yeah i did
well then thats the problem <.<
trying to add text and a number together
In response to Falacy
lol ok O.O
The Unknown Ninja From Hell wrote:
lol ok O.O

didn't work o.O still same error and i need it fixed for people to level up and gain stats =(
Fixed it lol =D