07.11.2014, 14:19
Hello got a error in this section wish i have no clue to fix, any suggestions or problem sovled sullution?
Error code "Compiling
Code witch the error is set on, red marked area "Problem"
Error code "Compiling
Код:
C:\Users\Unknown\Desktop\zombie\gamemodes\HellBound.pwn(9915) : error 021: symbol already defined: "strtok" C:\Users\Unknown\Desktop\zombie\gamemodes\HellBound.pwn(9930) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
stock 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;


