[POMOC]Error

Započeo Nadroj
27. Jun 2013. Zaključano
189
pregleda
3
postova
ladolez
5
Underboss
27. Jun 2013.
skripta:http://forum.sa-mp.com/showthread.php?t=364583
opis problema:
C:\Users\pera\Desktop\Global Warming\filterscripts\vehsistem.pwn(1179) : error 021: symbol already defined: "strtok"
C:\Users\pera\Desktop\Global Warming\filterscripts\vehsistem.pwn(1194) : 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.


a evo linija
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;
}

a evo druge
	result[index - offset] = EOS;
return result;
}

ova u sredini
[WW]ivan
5
Kingpin
27. Jun 2013.
strtok moze izbrisat jer si ga vec definiro, a za ovo drugo daj cijeli kod, al mislim da result nisi dobro definiro
ladolez
5
Underboss
27. Jun 2013.
kad sam obrisao strok i ovo drugo mi se sredilo 🙂

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha