25.04.2009, 17:40
error
(1045) : error 021: symbol already defined: "strtok"
1042-1061 Lines
Whats up??
(1045) : error 021: symbol already defined: "strtok"
1042-1061 Lines
pawn Код:
// ***** Extra Stock Functions *****
stock strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Whats up??