Posts: 72
Threads: 32
Joined: Oct 2009
Reputation:
0
(8332) : error 047: array sizes do not match, or destination array is too small
This is error line:
TopLappers[j]=strtok(templine,i);
Posts: 395
Threads: 10
Joined: Dec 2010
Reputation:
0
You need to add more cells, where you defined the variable.
Posts: 72
Threads: 32
Joined: Oct 2009
Reputation:
0
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Posts: 72
Threads: 32
Joined: Oct 2009
Reputation:
0
C:\DOCUME~1\BOCSBE~1\Asztal\dd.pwn(10530) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\BOCSBE~1\Asztal\dd.pwn(10540) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\BOCSBE~1\Asztal\dd.pwn(10663) : error 047: array sizes do not match, or destination array is too small
C:\DOCUME~1\BOCSBE~1\Asztal\dd.pwn(10683) : error 047: array sizes do not match, or destination array is too small error 047: array sizes do not match, or destination array is too small
Error:
TopLappers[j]=strtok(templine,i);
Posts: 395
Threads: 10
Joined: Dec 2010
Reputation:
0
Wherever this: TopLappers[] is created you need to make it larger give it more cells.