0 Members and 1 Guest are viewing this topic.
var S1Price: Array[1..5] of Integer;Procedure ActivateServer(); begin S1Price := [1000,2000,3000,4000,5000]; end;
10-05-21 15:16:17 [*] [Error] ZombieSurvival 0.01 -> (ActivateServer): Could not call proc
procedure InitializePrices();begin S1Price[1] := 1000; S1Price[2] := 2000; S1Price[3] := 3000; S1Price[4] := 4000; S1Price[5] := 5000;end;
procedure SetPrices(const Prices: array of integer);var i: byte;begin for i := 0 to 4 do S1Price[i + 1] := Prices[i];end;// your codebegin SetPrices([1000, 2000, 3000, 4000, 5000]);end;
But then I've got the problem that 'SetLenght(Array,Indexlenght)' doesn't work in Soldat..
for i := 1 to 5 do S1Price[i] := i * 1000;
foo|bar|lol!
Couldn't you make up anything more inefficient?
10-05-22 15:02:33 /S2\|SuxX| DarkCrusade captured the Blue Flag10-05-22 15:02:43 /S2\|SuxX| DarkCrusade scores for Alpha Team10-05-22 15:02:43 [*] [Error] Mountain 1.65c -> (OnFlagScore): '9999' is not a valid integer value
try stuffexcept writeln('omgerror');end;