var/hair = input("Which hairstyle do you want?","Naruto: Legendary Warriors") in list("Kakashi","test")
if(hair == "Kakashi")
var/icon/I = new('hairstyles.dmi',"kakashiH")
var/rgb1 = input("How much red do you want in your hair?","Naruto: Legendary Warriors") as num
var/rgb2 = input("How much green do you want in your hair?","Naruto: Legendary Warriors") as num
var/rgb3 = input("How much blue do you want in your hair?","Naruto: Legendary Warriors") as num
I += rgb(rgb1,rgb2,rgb3)
usr.icon += I
Problem description:
When I run the program, I get a runtime error saying type mismatch when I enter the RGB values. What is wrong?
var/hair is un-needed unless working with a mob/M as mob in world