// S = Slot A = Amount
mob
proc
Update_Stats()
winset(src,"Main.S1","text=\"[contents[1]]\"")
winset(src,"Main.S1A","text=\"[contents[1]]\"")
winset(src,"Main.S2","text=\"[contents[2]]\"")
winset(src,"Main.S2A","text=\"[contents[2]]\"")
winset(src,"Main.S3","text=\"[contents[3]]\"")
winset(src,"Main.S3A","text=\"[contents[3]]\"")
winset(src,"Main.S4","text=\"[contents[4]]\"")
winset(src,"Main.S4A","text=\"[contents[4]]\"")
winset(src,"Main.S5","text=\"[contents[5]]\"")
winset(src,"Main.S5A","text=\"[contents[5]]\"")
winset(src,"Main.S6","text=\"[contents[6]]\"")
winset(src,"Main.S6A","text=\"[contents[6]]\"")
winset(src,"Main.S7","text=\"[contents[7]]\"")
winset(src,"Main.S7A","text=\"[contents[7]]\"")
winset(src,"Main.S8","text=\"[contents[8]]\"")
winset(src,"Main.S8A","text=\"[contents[8]]\"")
Problem description:
runtime error: list index out of bounds
proc name: Update Stats (/mob/proc/Update_Stats)
usr: Guest-3335345902 (/mob)
src: Guest-3335345902 (/mob)
call stack:
Guest-3335345902 (/mob): Update Stats()
Guest-3335345902 (/mob): Loot()
When I execute the function shown using the line usr.Update_Stats()I get this error and I don't know what's going wrong. Also I know I'm showing the item in the amount slot but that's temporary until I sort this first problem out.
Anyone know what's up? Thanks Heaps.