Yago
2011-02-20 19:41:11
Program New;
{$DEFINE SMART}
{$i srl\srl.scar}
{$i reflection\reflection.simba}
Const
{---SMART Setup Constants---}
WORLD = 152;
MEMBERS = false;
SIGNED = true;
{---------------------------}
Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
With Players[0] Do
Begin
Name := ' ';
Pass := ' ';
Nick := ' ';
Active := True;
Pin := ' ';
End;
End;
Function InArea: boolean;
Var
PlayerPosition : Tpoint;
Begin
PlayerPosition := GetMyPos;
If (PointInBox(PlayerPosition , IntToBox(1000,1000, 3000,3000))) Then
Result := False;
[B]Else[/B]
Begin
Writeln('You are in the Area!');
Result := True;
End;
End;
Every time I add an else or end else to an if … then statement I keep getting the error:
Identifier expected at line *at the appropriate line
(If (PointInBox(PlayerPosition , IntToBox(1000,1000, 3000,3000))) Then
Result := False;
Else).
I get the error at the else.
It happens to all my scripts. I have a feeling I'm doing the if … then thing wrong. Please help