Author Topic: [Error] (24:7): Identifier expected. Why?  (Read 638 times)

0 Members and 1 Guest are viewing this topic.

Offline AquaByrd

  • Soldier
  • **
  • Posts: 108
  • Lolwut?
[Error] (24:7): Identifier expected. Why?
« on: February 26, 2009, 01:32:37 pm »
I'm getting [Error] (24:7): Identifier expected when I try to compile the following code:

Code: [Select]
Procedure OnFlagGrab(ID, TeamID: byte; GrabbedInBase: boolean);
Var
A: byte;

Begin
A:= 1 to 32 do
If GetPlayerStat(A,'Team') = 2 then begin
DrawText(A,'Fail! >.<',120,RGB(255,255,255),0.20,40,240);
end;
End;

Why am I getting this error?
My sig was 300 x 120, the maximum size is 300 x 125. Check next time will you.

Offline tk

  • Soldier
  • **
  • Posts: 235
Re: [Error] (24:7): Identifier expected. Why?
« Reply #1 on: February 26, 2009, 01:56:33 pm »
for A := 1 to 32 do ...
omg...
Is reading a pascal tutorial such a difficult thing?

Offline AquaByrd

  • Soldier
  • **
  • Posts: 108
  • Lolwut?
Re: [Error] (24:7): Identifier expected. Why?
« Reply #2 on: February 26, 2009, 03:25:15 pm »
That was ever so helpful /end sarcasm.
My sig was 300 x 120, the maximum size is 300 x 125. Check next time will you.