Blockland Forums > Modification Help

Can someone fix this syntax error?

Pages: (1/7) > >>

ScratchTehEPICSpaceDude:


--- Code: ---Add-Ons/Script_AntiPerma/server.cs Line: 13 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^^if(%c.isAdmin && %t $= "-1" && !%c.isSuperAdmin)

^^{

^^^messageClient(%c, '', "ERROR\c6: You are not allowed to permanently ban clients as an administrator on this server!");

^^^return;

^^}

^^return parent::serverCmdBan(%c, %o, %i, %t, %r);

^}

};

activat##
>>> Error report complete.
--- End code ---


Lugnut:

full code coming right up:

--- Code: ---package antiperma
{
function serverCmdBan(%c, %o, %i, %t, %r)
{
if(%c.isAdmin && %t $= "-1" && !%c.isSuperAdmin)
{
messageClient(%c, '', "ERROR\c6: You are not allowed to permanently ban clients as an administrator on this server!");
return;
}
return parent::serverCmdBan(%c, %o, %i, %t, %r);
}
};
activatepackage(antiperma);
--- End code ---

Everything is simply flawless, it just seems to not be reading the whole file.

xXBeibsFan119Xx:

Did you write 'activatePackage(packagename);' or just 'activat'?

ScratchTehEPICSpaceDude:


--- Quote from: xXBeibsFan119Xx on May 07, 2012, 06:07:06 PM ---Did you write 'activatePackage(packagename);' or just 'activat'?

--- End quote ---

We wrote it out.

xXBeibsFan119Xx:

Is that file being exec'd manually? Is that literally the entire file? Is the file in ASCII? Does it have Unix line endings or Carriage Return endings?

Pages: (1/7) > >>

Go to full version