Triple Post...
What the forget is wrong with this? I see no error in it what so ever, yet it says there is an error...
Executing add-ons/class_work/Gamemode_ArmyRP.cs.
add-ons/class_work/Gamemode_ArmyRP.cs Line: 22 - Syntax error.
>>> Some error context, with ## on sides of error halt:
%target = findClientByName(%targetEntry);
if(!isObject(%target)) //a name wasn't entered either, so we'll stop the function
{
return;
}
}
switch$(%rank::entry)
{
case "Private"
messageclient(##%##target,'',SPC "rank has been set to" SPC %rank::entry);
%target.rank = %rank::entry;
echo(%rank::entry);
case "Private 2"
messageclient(%target,'',SPC "rank has been set to" SPC %rank::entry);
%target.rank = %rank::entry;
>>> Error report complete.