Author Topic: First Blood script problem  (Read 1118 times)

0 Members and 3 Guests are viewing this topic.

Offline Zyyn

  • Major(1)
  • Posts: 21
First Blood script problem
« on: May 19, 2007, 05:59:35 pm »
I am trying to add the first blood script to my server.(Without the +5 point bonus for first kill)
This code.
Code: [Select]
var
FirstBlood: string;

procedure fb_OnMapChange(NewMap: string);
begin
FirstBlood := '0';
end;

procedure fb_OnPlayerKill(Killer, Victim: byte; Weapon: string);
begin
if (FirstBlood = '0') then begin
if (Killer <> Victim) then begin
FirstBlood := '1';
WriteConsole(0,'FIRSTBLOOD! '+IDToName(Victim)+' killed by '+IDToName(Killer),RGB(0,255,255));
DrawText(0,'FIRST BLOOD !',330,RGB(255,0,0),1.10,20,370);
end;
end;
end;
But I get this error...

07-05-19 18:56:15    Console Log Started
07-05-19 18:56:15 Loaded weapons mod "Default mod v1.4"
07-05-19 18:56:15 Welcome to Soldat 1.4.0
07-05-19 18:56:15 
  • Compiling Script fb.pas...

07-05-19 18:56:15 
  • Compiling Script ks.pas...

07-05-19 18:56:15 
  • Compiling Script Core.pas...

07-05-19 18:56:15 
  • Compiling Script NetworkCore.pas...

07-05-19 18:56:15 
  • Compiling Script AdminCore.pas...

07-05-19 18:56:15 
  • [Error] (239:24): comma (',') expected

07-05-19 18:56:15 Shutting server...
07-05-19 18:56:15 Shutting down admin server...
« Last Edit: May 19, 2007, 07:13:19 pm by FliesLikeABrick »

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: First Blood script problem
« Reply #1 on: May 19, 2007, 07:12:06 pm »
please use code tags