Line 72: [Error] (72:1): Unknown identifier 'HowManyPlayers'
What does that mean..? :L
The area is
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := StartPlayer;
NumberOfPlayers(HowManyPlayers); // set arraylength
Line 72: [Error] (72:1): Unknown identifier 'HowManyPlayers'
What does that mean..? :L
The area is
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := StartPlayer;
NumberOfPlayers(HowManyPlayers); // set arraylength
I am by far an expert but give this a try.
Change what you have there to this...
SCAR Code:procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers); // set arraylength
CurrentPlayer := StartPlayer;
putting currentplayer on the end there....that is what I have and it works fine. Plus I dont use a variable for my currentplayer. I just set it to ZERO instead.
I'm not too good with scripting but this is what I would try:
SCAR Code:procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
And make sure if you're setting HowManyPlayers to 1 there is only one of these (or something similiar)
SCAR Code:Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Active:= True;
below
SCAR Code:procedure DeclarePlayers;
begin
HowManyPlayers := 1;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
If you're still getting the same error that means something is wrong with the script (btw I think it was because CurrentPlayer was set to 'StartPlayer', but I'm not positive)
EDIT: Oh, depending on the script changing CurrentPlayer to 0 might not work, try it though and see what happens.
The first one fixed my problem, but now it's giving me another one...
Failed when compiling
Line 51: [Error] (14746:39): Type mismatch in script C:\Documents and Settings\Vanessa\Desktop\SCAR\SCAR 3.12\Scripts\Flax Picker.scar
And the line is...
1: MouseBox(MSX1, MSY1, MSX2, MSY2, 3);
There are currently 1 users browsing this thread. (0 members and 1 guests)