[Error 021] - 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)
+--- Thread: [Error 021] (
/showthread.php?tid=502512)
[Error 021] -
Cancel2 - 24.03.2014
Help
PHP код:
J:\New folder (2)\Ravens Roleplay 0.3z v1.1\gamemodes\larp.pwn(24878) : error 021: symbol already defined: "strtok"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
line 24878
full code:
PHP код:
line 24877strtok(const string[], &index)
line 24878{
line 24879 new length = strlen(string);
line 24880 while ((index < length) && (string[index] <= ' '))
line 24881 {
line 24882 index++;
line 24883 }
line 24884
line 24885 new offset = index;
line 24886 new result[20];
line 24887 while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
line 24888 {
line 24889 result[index - offset] = string[index];
line 24890 index++;
line 24891 }
line 24892 result[index - offset] = EOS;
line 24893 return result;
line 24894}
Re: [Error 021] -
Avi Raj - 24.03.2014
strtok is already defined before.
Re: [Error 021] -
Cancel2 - 24.03.2014
What's the problem?
Re: [Error 021] -
Cancel2 - 24.03.2014
up.....no one!
Re: [Error 021] -
Konstantinos - 24.03.2014
It already exists, remove it completely (from lines 24877-24894).
Re: [Error 021] -
Cancel2 - 24.03.2014
tnq rep+