[POMOC] Strtok

Započeo Danisha
30. Nov. 2012. Zaključano
356
pregleda
7
postova
Danisha
5
Underboss
30. Nov. 2012.
Skripta koju koristim:ravens u zcmd
Detaljan opis problema:ubacio sam strtok u skriptu i sada mi izbacuje errore sta da radim a ubacio sam gore ovo
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;
}

Dio skripte:
strtok

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Blaeks_Biofor
5
Forum Don
30. Nov. 2012.
to ide na kraj skripte
Danisha
5
Underboss
30. Nov. 2012.
evo errora
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 047: array sizes do not match, or destination array is too small
error 021: symbol already defined: "strtok"
error 047: array sizes do not match, or destination array is too small

to su errori od kada sam ubacio u dijelove skripte strtok
Blaeks_Biofor
5
Forum Don
30. Nov. 2012.
imas vec definisan strtok,izbrises jedan i resen problem
Danisha
5
Underboss
30. Nov. 2012.
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;
}

ma nemam imam samo ovaj
Blaeks_Biofor
5
Forum Don
30. Nov. 2012.
pa ne moze da ti baca errore da je vec definisan a da nije..
Danisha
5
Underboss
30. Nov. 2012.
ma neznam nije mi definisam kada kucam to izbaci mi samo ovo sto sam sada radio nista vise

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha