Ok I am a novice at coding and I have a problem with a syntax error, please help.
Console:
Loading Add-On: Server_servermessage (CRC:1021897025)
Add-Ons/Server_servermessage/server.cs Line: 6 - Syntax error.
>>> Some error context, with ## on sides of error halt:
/FIBmods - Server_servermessage
//By Fluff-is-back
function serverCmdMessage(%client)
{
messageClient(%client, '', $FIBMods::smessage)
}##
##
function serverCmdForceMessage(%client,%name)
{
%target = %client;
if(%client.isAdmin && %name !$= "")
%target = FindClientByName(%name);
if(isObject(%target))
{
messageClient(%client, 'MsgBoxOK', $FIBMods::smessage,);
}
>>> Error report complete.
ADD-ON "Server_servermessage" CONTAINS SYNTAX ERRORS
Actual code:
//FIBmods - Server_servermessage
//By Fluff-is-back
function serverCmdMessage(%client)
{
messageClient(%client, '', $FIBMods::smessage)
}
function serverCmdForceMessage(%client,%name)
{
%target = %client;
if(%client.isAdmin && %name !$= "")
%target = FindClientByName(%name);
if(isObject(%target))
{
messageClient(%client, 'MsgBoxOK', $FIBMods::smessage,);
}
}
function serverCmdMessageAll(%client)
{
if(%client.isAdmin)
{
BottomPrintAll($FIBMods::smessage,10)
}
}
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
if(!$RTB::RTBR_ServerControl_Hook)
exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
RTB_registerPref("Server Message","Server Message","$FIBMods::smessage","string 50","FIBMods",$FIBMods::smessage,0,0);
}