Započeo [IF] mariomako
•6. Jul 2010.pomoc 2 errora
689
pregleda
1
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
618
Postovi:
155
Teme:
Pridružio se:Apr. 2010
6. Jul 2010.
zz, zasto dobijam ove errore
na ove redove
to zdebeleno je line 262
a ovo dole zdebeleno je line 640
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 smallna ove redove
Quote
stock 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;
}
to zdebeleno je line 262
a ovo dole zdebeleno je line 640
Quote
stock 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