SRL Archive - Help and Support

And... I forgot...


R0b0t1

2008-03-22 16:32:59

How do I set the players' array information array length?


Player[0].Booleans[0..INF] := True; //length of that


I've tried looking…? Probably not hard enough.

mixster

2008-03-22 16:38:40

It has 100 variables (0->99), so you should be ok. Otherwise, includes/core/players.scar right at the bottom.

R0b0t1

2008-03-22 16:41:40

Oh, ok.

I remember right when this new system came out you needed to set the length of each array. No wonder I couldn't find it, then.

Wizzup?

2008-03-22 20:07:55

SetLength(Players[0].Booleans, SomeInt);

That works, the default length is 100.

R0b0t1

2008-03-23 11:42:07

So I could do that for performance or preference reasons then.


Thanks people.