Započeo Petar Pan
•14. Jun 2011.[Pomoc] Errori
640
pregleda
4
postova
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
490
Postovi:
127
Teme:
Pridružio se:Apr. 2011
14. Jun 2011.
Skripta koju koristim:BU
Detaljan opis problema:Izbacuje mi ova 2 errora
Dio skripte://///////
Neke slike/video za lakse dobivanje pomoci(neobavezno):////////////////////////
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):////////////////////////
Made Man
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
490
Postovi:
127
Teme:
Pridružio se:Apr. 2011
14. Jun 2011.
Quote
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
{
new length = strlen(string);
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava