strrest what mean? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: strrest what mean? (
/showthread.php?tid=214642)
strrest what mean? -
[MKD]Max - 21.01.2011
gMessage = strrest(cmdtext,idx);
hello guys what is
strrest mean i need fast help !!!!
Re: strrest what mean? -
alpha500delta - 21.01.2011
There isnt any Wiki article about this function... Are you sure it even exists?
If yes I would assume it would "pause the string"
Re: strrest what mean? -
Mike Garber - 21.01.2011
Sounds like a custom function, "String Rest" (The rest of the string?)
Re: strrest what mean? -
PeteShag - 21.01.2011
Returns the rest of the string splitting it at the index.
https://sampwiki.blast.hk/wiki/Useful_Functions#strrest
Re: strrest what mean? -
Anthonyx3' - 21.01.2011
isaw this in a post
pawn Код:
strrest(string[], idx)
{
new
ret[80];
strmid(ret, string, idx, strlen(string));
return ret;
}
Re: strrest what mean? -
Kwarde - 21.01.2011
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