01.02.2013, 14:50
Minimalistic excerpt of my problem:
Compilation:
I understand that in compile time the size of array is not known. Is there way to solve this without adding parameter with array size?
pawn Код:
#include <a_samp>
main() {
foo({ 1, 2, 3 });
}
stock foo(bar[]) {
for(new i = 0, j = sizeof bar; i < j; ++i) printf("Currently at %d", i);
}
Quote:
line with loop: warning 224: indeterminate array size in "sizeof" expression (symbol "") |