SA-MP Forums Archive
what mean errors 21 47 201 21? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: what mean errors 21 47 201 21? (/showthread.php?tid=141913)



what mean errors 21 47 201 21? - oObig_manOo - 15.04.2010

what mean errors 21 47 201 21?

D:\servers\samp\new\pawno\include\engine.inc(372) : error 021: symbol already defined: "strtok"
D:\servers\samp\new\pawno\include\engine.inc(387) : error 047: array sizes do not match, or destination array is too small
D:\servers\samp\new\gamemodes\1.8.pwn(37) : warning 201: redefinition of constant/macro (symbol "COLOR_PURPLE")
D:\servers\samp\new\gamemodes\1.8.pwn(2723) : error 021: symbol already defined: "IsNumeric"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.



Re: what mean errors 21 47 201 21? - ruckfules99 - 15.04.2010

strtok is already defined so go that line and get rid of it.

Same goes with IsNumeric


Re: what mean errors 21 47 201 21? - Thrarod - 15.04.2010

In line 387 probably a you use a string with NOT enough spaces


Re: what mean errors 21 47 201 21? - oObig_manOo - 15.04.2010

good i fixed some bugs and i have only 2 errors
D:\servers\samp\new\pawno\include\engine.inc(372) : error 021: symbol already defined: "strtok"
D:\servers\samp\new\pawno\include\engine.inc(387) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

line 387 =
return result;





code





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; <<< this line 387
}


Re: what mean errors 21 47 201 21? - oObig_manOo - 15.04.2010

and line 372 = {



code




strtok(const string[], &index)
{ <<<<this line 372
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;
}