Help With dutils HELP ME PLZ!
#1

C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2597) : error 021: symbol already defined: "strtok"
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2612) : error 047: array sizes do not match, or destination array is too small
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2761) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

I have it in all ini folders i need help!
Reply
#2

Quote:
Originally Posted by aceisnice
Посмотреть сообщение
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2597) : error 021: symbol already defined: "strtok"
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2612) : error 047: array sizes do not match, or destination array is too small
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2761) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

I have it in all ini folders i need help!
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2761) : warning 203: symbol is never used: "ret_memcpy"
pawn Код:
#pragma unused ret_memcpy
But show your code please.
Reply
#3

thannks man
now i get
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2597) : error 021: symbol already defined: "strtok"
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2612) : 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.


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;
}
Reply
#4

Quote:
Originally Posted by aceisnice
Посмотреть сообщение
thannks man
now i get
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2597) : error 021: symbol already defined: "strtok"
C:\CS-DM STUNT Server\gamemodes\CS-DM.pwn(2612) : 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.


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;
}
You probably including dutils, and are having strtok defined in the gamemode at the same time. Just remove the strtok function from your gamemode, because dutils already defines strtok in the .inc.
Reply
#5

ill try thanks
Reply
#6

not worken
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)