Hey im trying to make this script to test how I can change scores for a zombie mod im making.
var
Text: string;
begin
if Text = '/score' then begin
SetScore(IPToID('127.0.0.1'),GetPlayerStat(IPToID('127.0.0.1'),'KILLS)+10); // This will add 10 points to player 1's current score
end;
Result := false; // Return true if you want to ignore the command typed.
end;
end;
It says
[Error] (182:10): Duplicate identifier 'OnCommand'
just wondering how I can fix this and what I should do.