SRL Archive - Research & Development Lounge

compiling error please help.


superbuster4

2012-04-04 14:09:41

on my private script i got this error

[Error] (12:1): Identifier expected at line 11
Compiling failed.


here is the first part of script line 11 is var. it was working earlier idk i might have messed up when i edited this please help .

program private;

{$DEFINE SMART}
{$Define CrashSmart}
{$i SRL/srl.simba}
{$i sps/sps.simba}
{$i SRL/SRL/skill/fighting.simba}

Const

Var
K,Blue,Red,Bdw,Rdw:Integer;
RLeftC,Dead,RHDead,BHDead,RObelisk,RRightC,LeftC,Obelisk,RightC:Variant;


procedure SetupChar;

Kyle Undefined

2012-04-04 14:10:32

You're calling "Const", but are not declaring anything underneath it.

superbuster4

2012-04-04 14:11:30

From: Kyle Undefined
You're calling "Const", but are not declaring anything underneath it.


wow i just noticed i guess when it highlighted var i got confused il fix it. i dont remember what i had under const so i just deleted it and the script works, strange i guess it wasn't important.