your function -(int)GetSkill:(int)skill
has a return type of int
specified yet you dont have a return
statement. make it a (void)
if its not meant to return anything
if you have a return
inside an if statement, there has to be at least 1 return in the if
and the else
part for it to be able to return always, if not, it will give you that warning
side note: this statement if ((Upgrade = YES))
will always be true, since it is assigning Upgrade
instead of doing a comparison, you probably want to change it to if ((Upgrade == YES))