Help With dutils HELP ME PLZ!
#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


Messages In This Thread
Help With dutils HELP ME PLZ! - by aceisnice - 27.08.2010, 06:47
Re: Help With dutils HELP ME PLZ! - by Nonameman - 27.08.2010, 19:04
Re: Help With dutils HELP ME PLZ! - by aceisnice - 27.08.2010, 21:09
Re: Help With dutils HELP ME PLZ! - by Adil - 27.08.2010, 21:34
Re: Help With dutils HELP ME PLZ! - by aceisnice - 30.08.2010, 21:57
Re: Help With dutils HELP ME PLZ! - by aceisnice - 02.09.2010, 10:01

Forum Jump:


Users browsing this thread: 2 Guest(s)