I've just had a look at the code in your original post.
The error message refers to the fragment:
if Plyr.StaminaRecov=1 and Plyr.Stamina>40 then Plyr.StaminaR
but I can't find that fragment in your second snippet:
if KBB_WalkF=1
if KBB_Sprint=1 and Plyr.stamina>0 and Plyr.StaminaRecov=0
if Plyr.StaminaInterval<hitimer()
Plyr.stamina=Plyr.stamina-1
Plyr.StaminaInterval=hitimer()+60
endif
if Plyr.stamina<=40 and Plyr.RunningCont<2 then Plyr.StaminaRecov=1
inc Plyr.RunningCont
Camera(CamTP).Fv=FwrdSpd#+10.0
else
Camera(CamTP).Fv=FwrdSpd#
endif
endif
Could you post the lines which contain the fragment?
Also, don't forget that line numbers are not always correctly reported in error messages - and as Kevin Picone says the compiler might only detect the error a few lines beyond the original error.
So a bit more code would be helpful.