Započeo Danisha
•30. Nov. 2012.• Zaključano[POMOC] Strtok
365
pregleda
7
postova
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
560
Postovi:
211
Teme:
Pridružio se:Jul 2012
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
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
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:
strtokNeke slike/video za lakse dobivanje pomoci(neobavezno):
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
560
Postovi:
211
Teme:
Pridružio se:Jul 2012
30. Nov. 2012.
evo errora
to su errori od kada sam ubacio u dijelove skripte strtok
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 smallto su errori od kada sam ubacio u dijelove skripte strtok
Underboss
Balkan SA:MP
SA-MP Doprinos
Balkan SA:MP
SA-MP DoprinosNovi Član
240 / 250 XP
Početnik(0)
560
Postovi:
211
Teme:
Pridružio se:Jul 2012
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
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava