Another type mismatch. (converting variables)
Scar says: "[Error] (16807:36): Type mismatch in script C:\Pr[...]RTV6.scar" when i try to run my script, this is where it has trouble:
SCAR Code:
case (Players[CurrentPlayer].Strings[0]) of
'mithril': begin
If (SmithingXP / 30) < (MagicXP / 55) then
begin
LesserXP := SmithingXP / 30;
end else
LesserXP := MagicXP / 55;
MithrilBarsCreated := Int(LesserXP);
AdamantiteBarsCreated := 0;
RuniteBarsCreated := 0;
end;
(It has trouble with "MithrilBarsCreated := Int(LesserXP);", MithrilBarsCreated is an Integer and LesserXP is an "Extended" (aka float)).
Any suggestions?
Current Project - Superheater :: Mithril Bars - Should be ready for Members application soon