|  Is there a way to... | 
| Author: | 
Message: | 
cloudhunter 
Senior Member 
    
  
 
Posts: 536 Reputation: 18 
38 / – / – 
Joined: Dec 2005 
 | 
| 
 RE: Is there a way to...
 Delete the scripts you made, and disable the script you downloaded. Then try pasting the code in again... 
 
Cloudy 
![[Image: cloudy.jpg]](http://img.photobucket.com/albums/v383/marissaok/cloudy.jpg) 
Sig by pirateok/marisaok/marisa   
quote: Originally posted by Moulin Rouge 
The greatest thing you'll ever learn, is just to love and be loved in return
  
7255 days, 7 hours, 29 minutes, 4 seconds ago  
 |   
 | 
| 08-15-2006 09:22 PM | 
 | 
  | 
elfangor93 
Junior Member 
  
  
Proud Nerd
  
Posts: 25 
32 /   / – 
Joined: Feb 2006 
 | 
| 
O.P.  RE: Is there a way to...
 Still doesn't work. 
There are 10 types of peple in the world, those who know binary and those who don't.  
 |   
 | 
| 08-15-2006 09:23 PM | 
 | 
  | 
cloudhunter 
Senior Member 
    
  
 
Posts: 536 Reputation: 18 
38 / – / – 
Joined: Dec 2005 
 | 
| 
 RE: Is there a way to...
 Well, the code is correct, so it's something other than the code... I'm afraid I can't help... 
 
Cloudy 
![[Image: cloudy.jpg]](http://img.photobucket.com/albums/v383/marissaok/cloudy.jpg) 
Sig by pirateok/marisaok/marisa   
quote: Originally posted by Moulin Rouge 
The greatest thing you'll ever learn, is just to love and be loved in return
  
7255 days, 7 hours, 29 minutes, 4 seconds ago  
 |   
 | 
| 08-15-2006 09:24 PM | 
 | 
  | 
elfangor93 
Junior Member 
  
  
Proud Nerd
  
Posts: 25 
32 /   / – 
Joined: Feb 2006 
 | 
| 
O.P.  RE: Is there a way to...
 I should have full privilages and everything. 
There are 10 types of peple in the world, those who know binary and those who don't.  
 |   
 | 
| 08-15-2006 09:25 PM | 
 | 
  | 
dylan! 
Senior Member 
    
  
  
l33t p4int3r
  
Posts: 664 Reputation: 30 
– /   /   
Joined: Jan 2005 
 | 
 RE: Is there a way to...
it has something to do with the return part of it 
EDIT:  code: OnEvent_ChatWndSendMessage(ChatWnd,Message) 
{ 
     if (Message== "k" ){ 
         
    return "ok"; 
     } 
} 
  
Error: 'return' statement outside of function. 
       Line: 5. Code: -2146827270.  
 This post was edited on 08-15-2006 at 09:29 PM by dylan!.
 |   
 | 
| 08-15-2006 09:27 PM | 
 | 
  | 
elfangor93 
Junior Member 
  
  
Proud Nerd
  
Posts: 25 
32 /   / – 
Joined: Feb 2006 
 | 
| 
O.P.  RE: Is there a way to...
 That doesn't work either. It won't run, it stops automaticly. 
There are 10 types of peple in the world, those who know binary and those who don't.  
 |   
 | 
| 08-15-2006 09:33 PM | 
 | 
  | 
dylan! 
Senior Member 
    
  
  
l33t p4int3r
  
Posts: 664 Reputation: 30 
– /   /   
Joined: Jan 2005 
 | 
 RE: Is there a way to...
hmm.. I don't know anything about it but how about try 
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message) 
{ 
     if (Message== "k" ){ 
     ChatWnd.SendMessage('ok')   
    return ""; 
  } 
} 
  
WE ARE ALL NOOBS.. forgot the function   X100000  
 This post was edited on 08-15-2006 at 09:41 PM by dylan!.
 |   
 | 
| 08-15-2006 09:37 PM | 
 | 
  | 
elfangor93 
Junior Member 
  
  
Proud Nerd
  
Posts: 25 
32 /   / – 
Joined: Feb 2006 
 | 
O.P.  RE: Is there a way to...
Yay it works... but new problem. 
It doesn't replace if there are other words in the message.    How can I do that?  
There are 10 types of peple in the world, those who know binary and those who don't.  
 |   
 | 
| 08-15-2006 09:46 PM | 
 | 
  | 
Silentdragon 
Full Member 
   
  
  
if(life==null && wrists) EmoAlert();
  
Posts: 148 Reputation: 2 
35 /   / – 
Joined: Jun 2006 
 | 
 RE: Is there a way to...
code: function OnEvent_ChatWndSendMessage(ChatWnd,Message) 
{ 
     Message = Message.replace(/\bk\b/i,"Ok"); 
     return Message; 
}
   
 |   
 | 
| 08-15-2006 09:50 PM | 
 | 
  | 
elfangor93 
Junior Member 
  
  
Proud Nerd
  
Posts: 25 
32 /   / – 
Joined: Feb 2006 
 | 
O.P.  RE: Is there a way to...
It works! *does the happy dance* thank you everyone    
There are 10 types of peple in the world, those who know binary and those who don't.  
 |   
 | 
| 08-15-2006 09:54 PM | 
 | 
  | 
| 
Pages: (4): 
« First
 
«
 
 1
 2
 [ 3 ]
 4
 
»
 
Last »
 | 
| 
 |