strrest what mean?
#1

gMessage = strrest(cmdtext,idx);


hello guys what is

strrest mean i need fast help !!!!
Reply
#2

There isnt any Wiki article about this function... Are you sure it even exists?
If yes I would assume it would "pause the string"
Reply
#3

Sounds like a custom function, "String Rest" (The rest of the string?)
Reply
#4

Returns the rest of the string splitting it at the index.


https://sampwiki.blast.hk/wiki/Useful_Functions#strrest
Reply
#5

isaw this in a post
pawn Код:
strrest(string[], idx)
{
    new
        ret[80];
    strmid(ret, string, idx, strlen(string));
    return ret;
}
Reply
#6

Quote:
Originally Posted by Anthonyx3'
Посмотреть сообщение
isaw this in a post
pawn Код:
strrest(string[], idx)
{
    new
        ret[80];
    strmid(ret, string, idx, strlen(string));
    return ret;
}
Actually it's this one:

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;
}
On that Useful_Functions, you can download 'em all (uf.inc)
Here's the link: http://www.mediafire.com/?b74ixr65o4ff32a
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)