SRL Archive - Help

Error


adam101

2012-03-27 16:51:21

ODTM Updater Enabled!
[Hint] C:\Simba\Includes\SRL/SRL/core/mapwalk.simba(1353:3): Variable 'BOX' never used at line 1352
[Error] (5:4): 'BEGIN' expected at line 4
Compiling failed.




program New;
{$i srl/srl.simba}
Procedure DeclarePlayers;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
end;
begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
end.

Kyle Undefined

2012-03-27 16:57:04


Procedure DeclarePlayers;
begin

You're missing that begin :)

adam101

2012-03-27 16:58:17

From: kyle undefined

procedure declareplayers;
begin

you're missing that begin :)


thanks! It makes perfect sense now if i would have understood the error, its saying it wants BEGIN there.

adam101

2012-03-27 17:20:27

Moved this to proper section.

Kyle Undefined

2012-03-27 17:32:30

begins don't need the ";" after it, but ends do. Look up some beginner tutorials, they will explain everything :)