I'm trying to make code that when you spawn in for the first time, you get an item. But it keeps on saying that "'else' has to be placed just after an 'if' or 'else if' section"
can someone help me with this?
Code:
on first join:
set {_Number} to a random integer between 1 and 6
if {_Number} is 1:
give player {customitem::deepdarkbook}
else if {_Number} is 2:
give player {customitem::firebook}
else if {_Number} is 3:
give player {customitem::healthbook}
else if {_Number} is 4:
give player {customitem::mobbook}
else if {_Number} is 5:
give player {customitem::spacebook}
else:
give player {customitem::speedbook}