14.01.2011, 21:57
Quote:
to answer both of your questions, its:
vector[ONE OF THE ENUMS] = Value; example: vector[a] = "12"; |
Anyway, I just realized that sadly the full array can't be used while being with enumerated and in fact if I use a value like this vector[enum_val] then it's always returning one index, which in such case will always fail.
It is the answer, till :
struct_.pwn(14) : error 047: array sizes do not match, or destination array is too small
For now I've done the trick like this, but is it just me or in case like mine, they behave like seperate cells.. and can't be used as arrays, so then I need to make a unsafe call :
pawn Код:
main(){
memcpy(vector[a],"a text", 0, 4*3, 32);
memcpy(vector[b],"b text", 0, 4*3, 32);
print(vector[a]);
print(vector[b]);
}