21.01.2011, 20:13
gMessage = strrest(cmdtext,idx);
hello guys what is
strrest mean i need fast help !!!!
hello guys what is
strrest mean i need fast help !!!!
strrest(string[], idx)
{
new
ret[80];
strmid(ret, string, idx, strlen(string));
return ret;
}
isaw this in a post
pawn Код:
|
stock strrest(const string[], index)
{
new length = strlen(string);
new offset = index;
new result[256];
while ((index < length) && ((index - offset) < (sizeof(result) - 1)) && (string[index] > '\r'))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}