Author Topic: OnCommand  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline cynicle

  • Major(1)
  • Posts: 37
OnCommand
« on: May 26, 2007, 12:26:03 pm »
Hey im trying to make this script to test how I can change scores for a zombie mod im making.

Code: [Select]
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.

Join the Army. Visit strange and exotic places. Meet fascinating people. And kill them.

Aus Soldat League 203.208.70.216:23073

Offline iftach

  • Major(1)
  • Posts: 16
Re: OnCommand
« Reply #1 on: May 26, 2007, 12:36:35 pm »
You have two onCommand procedures. u can have only one.
so delete one.