proc/Update()// NOTE: this is the only part of the code made by Spuzzum, I would change it but I see no point in doing this.
// NOTE: it also has the original commenting from Spuzzum.
if(num < 0) //if the meter is negative
num = 0 //set it to zero
else if(num > width) //if the meter is over 100%
num = width //set it to 100%
src.icon_state = "[round(src.num)]" // this sets the icon state of the meter to its rounded off number
Problem description: When i compile my source there are no errors or warnings but when i play the game and i lvl up i get the warning:
runtime error: type mismatch: 13.5 - Guest-629030247 (/mob/players/Monk)
proc name: Update (/mob/players/proc/Update)
source file: Basics.dm,897
usr: Guest-629030247 (/mob/players/Monk)
src: Guest-629030247 (/mob/players/Monk)
call stack:
Guest-629030247 (/mob/players/Monk): Update(Guest-629030247 (/mob/players/Monk))
Guest-629030247 (/mob/players/Monk): Stat()
Guest-629030247 (/mob/players/Monk): Stat()
Guest-629030247 (/mob/players/Monk): Stat()
Guest-629030247 (/mob/players/Monk): Stat()
Guest-629030247 (/mob/players/Monk): Stat()
Guest-629030247 (/mob/players/Monk): Stat()
Guest-629030247 (/mob/players/Monk): Stat()