mIRC Home    About    Download    Register    News    Help

Print Thread
#23511 10/05/03 03:13 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
how would i use the $replace command when the text i want to replace will be in a $$? input? :tongue:


new username: tidy_trax
#23512 10/05/03 03:57 PM
Joined: May 2003
Posts: 177
P
Vogon poet
Offline
Vogon poet
P
Joined: May 2003
Posts: 177
$replace($$?="Enter something",substring,newstring) ?

#23513 10/05/03 04:01 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
cheers grin


new username: tidy_trax
#23514 10/05/03 04:26 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
what might be wrong with this then confused? thanks in ahead

$replace($$?="reason?",*, $+ $r(0,15) $+ » $+  $+ $r(0,15) $+ ¤ $+  $+ $r(0,15) $+ $$?="reason?" $+  $+ $r(0,15) $+ ¤ $+  $+ $r(0,15) $+ «)

Last edited by pheonix; 10/05/03 04:28 PM.

new username: tidy_trax
#23515 10/05/03 04:36 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
pretty much everything...
$+(,$r(0,15),»,$r(0,15),¤,$r(0,15),$$?="reason?",,$r(0,15),¤,,$r(0,15)«)


Code:
//if ( khaled isgod ) echo yes | else echo no
#23516 10/05/03 04:58 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
no i mean for example
if i type whatever in the box
i want it to come back like this:
15»15¤15whatever15¤15«
thats if 15 was the result of the random color code


new username: tidy_trax
#23517 11/05/03 07:48 AM
Joined: May 2003
Posts: 9
A
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: May 2003
Posts: 9
You're basically telling it to replace the character * with all of that nonsense. You could always make $$?="Reason" set to a variable like so: /set %reason% $$?="Reason:" - And then you could echo it out with all the decorations like so: /echo (decorations here) %reason% (more decorations)... Etc.

Hopefully this helps you. Haha.


Link Copied to Clipboard