Posts: 35
Threads: 5
Joined: Aug 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
Just a quick question. Is there a function like substring in CS? I looked in the Docs, googled it, tried random commands in AC but nothing worked.
Just need something to break "foo is spam" to "foo" and "is spam".
Thanks.
PS. Also is there a var in which the current name is stored?
Posts: 35
Threads: 5
Joined: Aug 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
Thanks!
As for the at command, I need the other bit (i.e. "is spam") separated too. An argc would make everything fine, but I'm not sure CS has one.
Posts: 35
Threads: 5
Joined: Aug 2010
Thanks: 0
Given 0 thank(s) in 0 post(s)
21 Aug 10, 03:01PM
(This post was last modified: 21 Aug 10, 03:07PM by Breeze.)
lmao I need the whole of the remaining string, not just the second word.
The problem with 'at' is I won't know when to stop for an unknown number of words.
I guess I could iterate through a large amount and stop when at[] returns "" (null string).
Posts: 1,823
Threads: 20
Joined: Jun 2010
Thanks: 0
Given 5 thank(s) in 1 post(s)
That requires loop and listlen and a + and -, in addition to time. Perhaps Bukz can help when he gets online :P
Posts: 1,823
Threads: 20
Joined: Jun 2010
Thanks: 0
Given 5 thank(s) in 1 post(s)
21 Aug 10, 03:50PM
(This post was last modified: 21 Aug 10, 11:17PM by Gibstick.)
No problem! Glad you could solve it by yourself :)
Posts: 3,462
Threads: 72
Joined: Jun 2010
Thanks: 5
Given 3 thank(s) in 3 post(s)
Nice little conversation ya'll had there. By the way, if you have a question, don't hesitate to ask on the cubescript IRC channel. It is #Cubescript on gamesurge.net. Your bound to get help there.