Blockland Forums > Modification Help
Converting chat to URL efficiently.
<< < (2/4) > >>
MegaScientifical:
I'm just trying to figure out why I can't figure this out. I might not use it in coding, but I need to hold logical thinking... I think this is why I have problems with Pre-calculus... Thought process. Here's what I just threw together, but even if it functioned perfectly from what's there, it doesn't account for limiting to only two URLs:


--- Code: ---function urlChat(%t) {
%output = "http://";
for(%i = 0; %i <= getWordCount(%t); %i++) {
%w = getWord(%t, %i);
if(strStr(%w, ":") > -1)
%output = %output @ " " @ %w @ " http://";
else
%output = %output @ "_" @ %w @ " ";
}
}
--- End code ---
Uristqwerty:
This sort of thing would be far easier with a regex...
Loki:
I thought I had the answer but reading your opening post forgeted with my mind.
MegaScientifical:
I rewrote the topic post. Hopefully it is a little more understandable.
MegaScientifical:
I need an example of a multitasking code like this... it has to keep track of some things in an efficient fashion, and I can't figure that out logically. :panda:
Navigation
Message Index
Next page
Previous page

Go to full version