gamemodes\udmlv2.pwn(3693) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4066) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4398) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4756) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4765) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4801) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4870) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(4966) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5034) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5043) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5074) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5083) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5114) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5123) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5153) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5162) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5215) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5262) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5270) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5381) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5391) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5402) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5428) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5437) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5460) : error 047: array sizes do not match, or destination array is too small gamemodes\udmlv2.pwn(5469) : error 047: array sizes do not match, or destination array is too small Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
\gamemodes\udmlv2.pwn(3693) : error 047: array sizes do not match, or destination array is too small \gamemodes\udmlv2.pwn(4066) : error 047: array sizes do not match, or destination array is too small \gamemodes\udmlv2.pwn(4398) : error 047: array sizes do not match, or destination array is too small
check the array sizes that you're using, make sure that wherever you assign them is larger or equal to where you get the data from. can you post those lines which says there's an error?
|
\gamemodes\udmlv2.pwn(3693) : error 047: array sizes do not match, or destination array is too small \gamemodes\udmlv2.pwn(4066) : error 047: array sizes do not match, or destination array is too small \gamemodes\udmlv2.pwn(4398) : error 047: array sizes do not match, or destination array is too small
new idx;
new cmd[256]; new tmp[250]; cmd = strtok(cmdtext, idx); cmdtext is defined under OnPlayerCommandText(playerid, cmdtext[]) ? Isn't it... |
new cmd[128], tmp[128];
// alternatively...
new cmd[64], tmp[64];
they're too big in my opinion when it comes to command string lengths. try using equal sizes for both, that might be able to fix it.
pawn Код:
|
I'll give that a try...but the error was being caused by some include...Everything was fine the way it was until I started attempting certain things with a filter-script..
|
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;
}