Loading Add-On: GameMode_UnlimitedMining (CRC:-678784771)
Add-Ons/GameMode_UnlimitedMining/DirtLottery.cs Line: 338 - Syntax error.
>>> Some error context, with ## on sides of error halt:
%amount = 0-%reward;
else
%amount = %reward;
%amount*=%level;
%client.Dig_LottoCash++;
if ( %client.Dig_LottoCash > 1)
%client.Dig_LottoCash =0;
if ( %amount > 0)
{
messageClient(%client, '', "Sweet! <color:00FF00>You got $" @ %amount!"##)##;
}
else
{
messageClient(%client, '', "Aw, snap! <color:00FF00>You LOST $" @ mabs(%amount));
}
if ( %level > 1)
%client.AddMoney( %amount, "R Lotto ", "cash | " @ %amount, 1);
else
%client.AddMoney( %amount, "Lotto ", "cash |" @ %amount, 1);
>>> Error report complete.
ADD-ON "GameMode_UnlimitedMining" CONTAINS SYNTAX ERRORS
What did I do wrong?