Moin
Ich hab eben ausversehen meine strtok.inc gegen eine ältere ersetzt....
Jetzt kommen da Fehler und die nerven-.-
Kann mir bitte jemand das neueste strtok.inc schicken?
W:\Users\Disturbed\Desktop\Scripts\xgf2.pwn(18367) : error 047: array sizes do not match, or destination array is too small
W:\Users\Disturbed\Desktop\Scripts\xgf2.pwn(29132) : error 021: symbol already defined: "strtok"
W:\Users\Disturbed\Desktop\Scripts\xgf2.pwn(29147) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
die waren bei dem neuesten strtok.inc nicht da.
mein jetztiger strtok.inc:
#if defined _strtok_included
#endinput
#endif
#define _strtok_included
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
bitte um hilfe!