23.08.2013, 07:41
Yeah, these arrays take their space during the compilation (and have it allocated when your script fires up), and cannot be resized at runtime.
However the direction you're looking at is good. There are many cool plugins these days (such as GVars, CSTL for vector/map support, and the latest memory allocation plugin) which will help you out with dynamic memory allocation. Also large arrays tend to make large .amx files and larger compile times. The benefit grows if you actually may require 30 slots to be used instead of 100, but sometimes even 300.
Good luck!
However the direction you're looking at is good. There are many cool plugins these days (such as GVars, CSTL for vector/map support, and the latest memory allocation plugin) which will help you out with dynamic memory allocation. Also large arrays tend to make large .amx files and larger compile times. The benefit grows if you actually may require 30 slots to be used instead of 100, but sometimes even 300.
Good luck!