Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: Petar Pan poslato Jun 14, 2011, 22:22:45 POSLE PODNE

Naslov: [Pomoc] Errori
Poruka od: Petar Pan poslato Jun 14, 2011, 22:22:45 POSLE PODNE
Skripta koju koristim:BU
Detaljan opis problema:Izbacuje mi ova 2 errora
C:\Documents and Settings\Maki\My Documents\GTA San Andreas User Files\Balkan Deluxe server\Balkan Deluxe server\Balkan Deluxe\gamemodes\BD.pwn(13999) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\Maki\My Documents\GTA San Andreas User Files\Balkan Deluxe server\Balkan Deluxe server\Balkan Deluxe\gamemodes\BD.pwn(14014) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\Maki\My Documents\GTA San Andreas User Files\Balkan Deluxe server\Balkan Deluxe server\Balkan Deluxe\gamemodes\BD.pwn(25161) : warning 219: local variable "mod" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.


Dio skripte://///////
Neke slike/video za lakse dobivanje pomoci(neobavezno):////////////////////////
Naslov: Odg: [Pomoc] Errori
Poruka od: MicroSD_ poslato Jun 14, 2011, 22:23:46 POSLE PODNE
a ja znam sta tu ne valja... :S

daj te linije
Naslov: Odg: [Pomoc] Errori
Poruka od: Petar Pan poslato Jun 14, 2011, 22:24:55 POSLE PODNE
Citatstrtok(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;
}
Naslov: Odg: [Pomoc] Errori
Poruka od: Zarathos poslato Jun 14, 2011, 22:52:36 POSLE PODNE
Imas 2 puta u modu definiranu funkciju strtok obrisi jednu...