View Full Version : Procedure Looping
Deadly Serious
01-12-2012, 06:32 AM
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
01-12-2012, 06:36 AM
If you runenergy is above or below 50 it will keep doing everything after that
while not RunEnergy(50) do
line.
Deadly Serious
01-12-2012, 06:39 AM
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
01-12-2012, 06:43 AM
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
01-12-2012, 08:51 AM
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.
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 (http://docs.wizzup.org/srl-5/gametab.html#getmmlevels).
So you'd do something like
var
s : string;
[...]
if GetMMLevels('run', s) < 50 then
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.