PHP Code:
Procedure DamageCalc;
Var
RandomDamage: Integer;
Damage : String;
Begin
RandomDamage:= random(6);
Case(RandomDamage)Of
0 : Damage:= ('1');
1 : Damage:= ('2');
2 : Damage:= ('3');
3 : Damage:= ('4');
4 : Damage:= ('5');
5 : Damage:= ('6');
WriteLn(Damage);//This is line 14
End.
on line 14 it tells me i need a colon, any ideas? I'm doing this for school, mainly because im bored. But also because i have to. I've tried using an integer and a string for the damage. I havn't used a case before so sorry if i'm no good with them
.