13.05.2014, 09:44
Ok then don't include the file and try just declaring the function:
That should really work then, it does for me at least. As you can see, result in strrest has the same size as tmp and cmd.
pawn Код:
stock strrest(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[128];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}