Code: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; Else 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:
at the appropriate lineCode:Identifier expected at 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






Reply With Quote





