Hero wont summon and gettin an error

ima be real with you chief I just started doing this because Ive been neglecting most replayable levels. I just been trying to make a decent program that can last me for a bit.