SA-MP Forums Archive
Help With dutils HELP ME PLZ! - 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: Help With dutils HELP ME PLZ! (/showthread.php?tid=171607)



Help With dutils HELP ME PLZ! - aceisnice - 27.08.2010

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!


Re: Help With dutils HELP ME PLZ! - Nonameman - 27.08.2010

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.


Re: Help With dutils HELP ME PLZ! - aceisnice - 27.08.2010

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;
}


Re: Help With dutils HELP ME PLZ! - Adil - 27.08.2010

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.


Re: Help With dutils HELP ME PLZ! - aceisnice - 30.08.2010

ill try thanks


Re: Help With dutils HELP ME PLZ! - aceisnice - 02.09.2010

not worken