Quote:
Originally Posted by Ghosted
Not loop just use 0,1,2 or use xs. You can't assign Vector to Vector cause theres no = operator, but they are same (VecA = VecB & VecA[0] = VecB[0]...)
|
Do you even read what I write or you just post unknowingly? I basically just stated that I'm aware you can't assign values as in C++ here in Pawn and that we need to go through both of the arrays dimensions at the same time and assign values.
PHP Code:
public MyFunction( )
{
new aArray[ 3 ], bArray[ 3 ];
MixArrays( aArray, bArray );
}
MixArrays( aArray[ ], bArray[ ] )
{
for( new i; i < 3; i++ )
{
aArray[ i ] = bArray[ i ];
}
}
__________________