Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: [IF] mariomako poslato Jul 06, 2010, 12:43:14 POSLE PODNE

Naslov: pomoc 2 errora
Poruka od: [IF] mariomako poslato Jul 06, 2010, 12:43:14 POSLE PODNE
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;
}