Blockland Forums > Modification Help
Strange syntax error after editing Unlimited Mining...
ScratchTehEPICSpaceDude:
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?
Lugnut:
messageClient(%client, '', "Sweet! <color:00FF00>You got $" @ %amount!");
VERSUS
messageClient(%client, '', "Sweet! <color:00FF00>You got $" @ %amount @ "!");
ScratchTehEPICSpaceDude:
--- Quote from: Lugnut1206 on April 16, 2012, 02:12:48 PM ---messageClient(%client, '', "Sweet! <color:00FF00>You got $" @ %amount!");
VERSUS
messageClient(%client, '', "Sweet! <color:00FF00>You got $" @ %amount @ "!");
[/quote
OH Thank you so much!
--- End quote ---
ScratchTehEPICSpaceDude:
I'm so sorry, I'm incredibly stupid today.
Loading Add-On: GameMode_UnlimitedMining (CRC:138601840)
Add-Ons/GameMode_UnlimitedMining/Bombs.cs Line: 147 - Syntax error.
>>> Some error context, with ## on sides of error halt:
explodeOnDeath = 1;
uiName = "Dig Bomb";
};
function buyBomb(%client, %size)
{
// %client buys a bomb
if ( %size < 1)
{
%size = 1;
}
if ($Dig_Data_BombSizeBuyLimit==0)
{
Dig_DisplayError("Sorry" %client ##"##, Bombs are disabled");
return;
}
if ( %size > $Dig_Data_BombSizeBuyLimit || %size < 1)
{
Dig_DisplayError(%client, "Bomb too big. Please don't lag the server");
return;
}
if ( %client.bomb > 0)
{
Dig_DisplayError(%client, "You already have a bomb");
>>> Error report complete.
ADD-ON "GameMode_UnlimitedMining" CONTAINS SYNTAX ERRORS
Brian Smithers:
Dig_displayError("Sorry" @ %client.name @ ", Bombs are disabled!");