Log in

View Full Version : Error



adam101
03-27-2012, 08:51 PM
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
03-27-2012, 08:57 PM
Procedure DeclarePlayers;
begin


You're missing that begin :)

adam101
03-27-2012, 08:58 PM
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
03-27-2012, 09:20 PM
Moved this to proper section.

Kyle Undefined
03-27-2012, 09:32 PM
begins don't need the ";" after it, but ends do. Look up some beginner tutorials, they will explain everything :)