Whenever I try to execute an addon from the game (I updated it and want to reload it without restarting the server) I do an exec(add-ons/bleh/server.cs);
It tells me I have a syntax error in the weirdest of places.
It would say something like
Executing Add-Ons/Gamemode_Deathrun/Gamemode_Deathrun.cs.
% Add-Ons/Gamemode_Deathrun/Gamemode_Deathrun.cs Line: 503 - Syntax error.
% >>> Some error context, with ## on sides of error halt:
% ^^if(%client.tdmteam==1 && isObject(%client.minigame) && !%client.minigame.tdmModeRule[5])
^^{
^^^messageClient(%client, '', "\c0You can't Self Delete as a death.");
^^^return;
^^}
^^else if(%client.tdmteam==0 && isObject(%client.minigame) && !%client.minigame.tdmModeRule[6])
^^{
^^^messageClient(%client, '', "\c0You can't s##
% >>> Error report complete.