pomoc sa 0.3 :S

20. Okt. 2009.
1,034
pregleda
2
postova
hipy
4
Shot Caller
20. Okt. 2009.
eo imam 2 errora :S
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 " /* */ " 🙂
Deleted User
Obrisan korisnik
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

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha