How to cut a piece of text?
#4

Quote:
Originally Posted by ikbenremco
Посмотреть сообщение
Use strmid.

https://sampwiki.blast.hk/wiki/Strmid


strmid(string, "ItWillCopeThis notthis", 1, 14); //string contains "ItWillCopeThis"

1 stands for the first character and 14 for the last.
In that case Strdel will be better
pawn Код:
new string[42] = "We will delete everything apart from this";
strdel(string, 0, 37); // string is now "this"
Reply


Messages In This Thread
How to cut a piece of text? - by LastChaos - 29.11.2013, 13:40
Re: How to cut a piece of text? - by xVIP3Rx - 29.11.2013, 13:41
Re: How to cut a piece of text? - by ikbenremco - 29.11.2013, 13:44
Re: How to cut a piece of text? - by xVIP3Rx - 29.11.2013, 13:47
Re: How to cut a piece of text? - by Konstantinos - 29.11.2013, 14:11
Re: How to cut a piece of text? - by LastChaos - 29.11.2013, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)