SRL Archive - Help

Procedure Looping


Deadly Serious

2012-01-12 01:32:47

From: Deadly Serious
Thanks, I guess I better go try and figure that out now.
I've gone through a few threads and it says it's "S."
But when I do

If GetMmLevels('run', 's') < 50 Then
It gives me:

[Error] (229:27): Variable Expected at line 228
Compiling failed.


Does anyone know what I'm doing wrong?

YoHoJo

2012-01-12 01:36:38

If you runenergy is above or below 50 it will keep doing everything after that
while not RunEnergy(50) do
line.

Deadly Serious

2012-01-12 01:39:15

From: YoHoJo
If you runenergy is above or below 50 it will keep doing everything after that
while not RunEnergy(50) do
line.


Wow, I didn't think of that. To fix it could I just do
While below RunEnergy(50) do?

YoHoJo

2012-01-12 01:43:54

function GetMMLevels(LevelType: string; var ColorSign: string): Integer; 

You can just do an If Then
If GetMmLevels('run', '') < 50 Then

I'm not sure what goes inside of the 'ColorSign' parameter :/

Deadly Serious

2012-01-12 03:51:21

From: YoHoJo
function GetMMLevels(LevelType: string; var ColorSign: string): Integer; 

You can just do an If Then
If GetMmLevels('run', '') < 50 Then

I'm not sure what goes inside of the 'ColorSign' parameter :/


Thanks, I guess I better go try and figure that out now.
I've gone through a few threads and it says it's "S."
But when I do

If GetMmLevels('run', 's') < 50 Then
It gives me:

[Error] (229:27): Variable Expected at line 228
Compiling failed.

Sex

2012-01-12 04:42:41

From: Deadly Serious
Thanks, I guess I better go try and figure that out now.
I've gone through a few threads and it says it's "S."
But when I do

If GetMmLevels('run', 's') < 50 Then
It gives me:

[Error] (229:27): Variable Expected at line 228
Compiling failed.
The second parameter of GetMMLevels is supposed to be a variable. See the documentation.

So you'd do something like

var
s : string;
[...]
if GetMMLevels('run', s) < 50 then