Client.cs:
if (!$ScopeToggle)
{
$remapDivision[$remapCount] = "Zooms";
$remapName[$remapCount] = "Scope";
$remapCmd[$remapCount] = "Scope_Toggle";
$remapCount++;
$ScopeToggle = 1;
}
function Scope_Toggle(%v)
{
if(%v == 1)
{
Crosshair.setBitmap("Add-ons/Zoom_Scope_Rifle/BarrelScope/crossHair");
Crosshair.resize(0,0,800,600);
Parent::toggleScope(%1);
%v == 0;
}
else
{
Crosshair.setBitmap("Add-ons/Zoom_Scope_Rifle/Default/crossHair");
Crosshair.resize(304,224,32,32);
Parent::toggleScope(%0);
%v == 1;
}
}
Console error:
--------- Loading Client Add-Ons ---------
Loading compiled script base/server/crapOns.cs.
%
Client checking Add-On: Zoom_Scope_Rifle
Loading Add-On: Zoom_Scope_Rifle
Add-Ons/Zoom_Scope_Rifle/client.cs Line: 16 - Syntax error.
>>> Some error context, with ## on sides of error halt:
Crosshair.resize(0,0,800,600);
Parent::toggleScope(%1)##;##
%v == 0;
}
else
{
Crosshair.setBitmap("Add-ons/Zoom_Scope_Rifle/Default/crossHair");
>>> Error report complete.
Executing Add-Ons/Zoom_Scope_Rifle/client.cs.
Add-Ons/Zoom_Scope_Rifle/client.cs Line: 16 - Syntax error.
>>> Some error context, with ## on sides of error halt:
Crosshair.resize(0,0,800,600);
Parent::toggleScope(%1)##;##
%v == 0;
}
else
{
Crosshair.setBitmap("Add-ons/Zoom_Scope_Rifle/Default/crossHair");
>>> Error report complete.
%