Quote:
Originally Posted by Doc-Holiday
you were asking for an example....... lol so i showed you how to use it and yes according to the way the post are after mine the above code would create what you want. however the wiki shows
new Array[X][32];
is the same as
CreateArray(32);
|
A few things:
1. new Array[X][32] will give you tag errors if you try to use Strings with it.
2. new String:Array[X][32] creates an array that takes up 1/4 the space that new Array[X][32] does. Same with CreateArray(ByteCountToCells(32)) versus CreateArray(32) because ByteCountToCells(32) returns 8. Just as important, ByteCountToCells may change at a later date if a 64-bit version of srcds appears and SourcePawn starts using 64-bit cells, meaning that you shouldn't hard-code 8 there either.
__________________