SRL Archive - OSR Help

Problems with DeclarePlayers;


Yush Dragon

2010-07-21 14:08:13

Hey guys im doing the tutorial of Coh3n again to refresh my mind to start with scripting again.
but it gives me an error when i try to use DeclarePlayers:

[Error] (9:3): Unknown identifier 'HowManyPlayers' at line 8
Compiling failed.

procedure Declareplayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'Yush Dragon';
Pass := 'blehblehblow';
Nick := 'ush';
Active := True;
Pin := '';
end;
end;


any help?

Frement

2010-07-21 14:09:08

const HowManyPlayers = 1;

That to constants.

Yush Dragon

2010-07-21 14:15:22

now i got an other one:
[Error] (12:3): Unknown identifier 'NumberOfPlayers' at line 11

Shuttleu

2010-07-21 14:53:44

var
HowManyPlayers: Integer;
add that below
procedure Declareplayers;
and before
begin

~shut

noidea

2010-07-21 14:55:28

Do you have SRL included?

i luffs yeww

2010-07-21 17:17:34

^ Well I assume not. :p Can't believe nobody else said that..

Yush Dragon

2010-07-21 21:34:08

lol yea indeed i forgot to add srl i thought sambi did need it because it already included itself but now i know how to use it :P