Yes, I am using the dreaded goto, but I could see no other way of doing it. Anyway, I'm using this code:
SCAR Code:repeat
featherbuying:
Wait(100 + Random(50));
FeathersBought := FeathersBought + BuyFeathers;
if (GetSystemTime - TimePlayed * 100 = TimePerPlayer) then Break;
if (featherstobuy = 0) then goto featherbuying;
until(FeathersBought >= FeathersToBuy) or (GetSystemTime - TimePlayed * 100 = TimePerPlayer);
Buy feathers is a function that returns an integer.
I have got featherbuying declared as a label.
Thanks, Pancakes.





~RAM
Reply With Quote










