08.09.2012, 13:55
I am getting the following error:
error 047: array sizes do not match, or destination array is too small
At this:
(note: also tried as this:
and since then changed the array sizes because they were too large..)
Ranks being defined as such:
I tried in multiple ways but it still wont let me return the string.
error 047: array sizes do not match, or destination array is too small
At this:
pawn Код:
new rankname[100];
rankname = ranks[strval(rank)];
return rankname;
pawn Код:
new rankname[50];
format(rankname, sizeof(rankname), "%s", ranks[strval(rank)]);
return rankname;
Ranks being defined as such:
pawn Код:
new ranks[8][100] = { // note in above NOTE it is not 100 but 50
"New guy" // further results omitted
};