View Single Post
FaTony
Veteran Member
Join Date: Aug 2008
Old 08-20-2012 , 18:13   Re: Dynamic Arrays in SourcePawn
Reply With Quote #38

Imho:
PHP Code:
new array[];
array.
push(); //add default initialized cell to array
array.push(5); //add cell containing 5 to array
array.pop();
array.
resize(10); //change the size of array to 10, if it's bigger than old size, default initialize new elements.
array.resize(105); //same but fill new elements with 5 
__________________
FaTony is offline