• Welcome to Valhalla Legends Archive.
 

Basic Kick command

Started by titan0060, September 24, 2004, 05:39 AM

Previous topic - Next topic

ColT

Noobs, can still learn of this thread.

Warrior

Then what difference does it make if its locked or closed?
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

CrAz3D

#17
If you don't tell the split function how many strings to split to then it will go as many as there are perimeters
Split(Message, " ", 2) would split it into 2 strings
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

titan0060

Quote from: CrAz3D on September 25, 2004, 05:34 PM
If you don't tell the split function how many strings to split to then it will go as many as there are perimeters
Split(Message, " ", 2) would split it into 2 strings

if u leave it blank though wont it just go on forever?

CrAz3D

Yes,  it will split into MANY strings.

Example:
Message = `kick CrAz3D You're just too awesome dood!

Now, if you don't specify how many strings to split it into you will end up with 7 different strings.

By using what I showed you would would get 2 strings.

string1 = `kick
string2 = CrAz3D You're just too awesome dood!
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

titan0060

Quote from: CrAz3D on September 26, 2004, 09:22 AM
Yes,  it will split into MANY strings.

Example:
Message = `kick CrAz3D You're just too awesome dood!

Now, if you don't specify how many strings to split it into you will end up with 7 different strings.

By using what I showed you would would get 2 strings.

string1 = `kick
string2 = CrAz3D You're just too awesome dood!

wait, wouldn't it continue to split this?  the only way to split this in 2 is to have
Split=(Message "`kick")

Split=(Message " ") would continue to split this without saying how many to split.

or does it just cut it at the first " "?

CrAz3D

You should look into the Split function a little more, like how it is layed out.  Splitting by `kick wouldn't do you ANY good....Splitting by " " with no declaration of how many strings would keep the splitting 'going on forever'.  By using the limit declaration you can specify how many strings to split into.

Array = Split(Message, " ", 2) would split the message into 2 strings, the first string only having 1 word, the second string containing the rest of the words in that Message.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...