As i said, it is impossible to change the size of an array ingame. Or if it is in a mod. However, it is possible to limit the array slots used using a method like mine (the one i posted was for effectivly setting an array size to the amount of players).
Well when creating the array you should set it to what you want. You can't change it ingame. The way my code works is that it only uses the parts that it needs, and so effectively changes the array size. Complicated, but works. I'd recommend setting it to an array of size 100 or so and then using some code similar to what i posted earlier and limiting the allowed array values.
@Thenarden: Go
As i said, it is impossible to change the size of an array ingame. Or if it is in a mod. However, it is possible to limit the array slots used using a method like mine (the one i posted was for effectivly setting an array size to the amount of players).
@Nite01: Go
Well when creating the array you should set it to what you want. You can't change it ingame. The way my code works is that it only uses the parts that it needs, and so effectively changes the array size. Complicated, but works. I'd recommend setting it to an array of size 100 or so and then using some code similar to what i posted earlier and limiting the allowed array values.
@Nite01: Go
Set an array of size 15 and then do this:
Then use that var as the size of the array. Anything above it will still be there, just unused. And this should work for 1-16 players.