Započeo ђเ××§
•20. Okt. 2009.pomoc sa 0.3 :S
1,103
pregleda
2
postova
Shot Caller
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
90 / 100 XP
Početnik(0)
125
Postovi:
18
Teme:
Pridružio se:Maj 2009
20. Okt. 2009.
eo imam 2 errora :S
EDIT: evo ti redovi
9981:
9996 je ovo return result;
a 9981 je "{" prva
eo popravia san ne treba vise :=) samo sam " /* */ " 🙂
C:\Documents and Settings\-.-\Desktop\samp03asvr_win32\gamemodes\bf.pwn(9981) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\-.-\Desktop\samp03asvr_win32\gamemodes\bf.pwn(9996) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
EDIT: evo ti redovi
9981:
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;
}
9996 je ovo return result;
a 9981 je "{" prva
eo popravia san ne treba vise :=) samo sam " /* */ " 🙂
20. Okt. 2009.
izbrisi taj strtok ili stavi ovak:
/*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;
}*/
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava