I am trying to add the first blood script to my server.(Without the +5 point bonus for first kill)
This code.
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...