pomoc 2 errora

Započeo [IF] mariomako, Jul 06, 2010, 12:43:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

zz, zasto dobijam ove errore

E:\SAMP Server\FilterSkripti\Filterscripta COS-a By Bloomer\filterscript\cos.pwn(626) : error 021: symbol already defined: "strtok"
E:\SAMP Server\FilterSkripti\Filterscripta COS-a By Bloomer\filterscript\cos.pwn(640) : error 047: array sizes do not match, or destination array is too small


na ove redove
Citatstock 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;
}

to zdebeleno je line 262

a ovo dole zdebeleno je line 640
Citatstock 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;
}