mIRC Home    About    Download    Register    News    Help

Print Thread
D
DragonPark
DragonPark
D
i am trying to use the $pos function, but am having a lot of problems with it. I have tried the example given in the help file and recieved an error saying insufficient parameters. I echoed $pos(hello there,e,1), which was in the help file, but I recieve the error. Is there something i missed or is it mIRC at fault?

Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
What error do you get? //echo -a $pos(hello there,e,1) works fine for me (echos '2', the position of the first e in "hello there").

If you don't provide a switch before the $pos mIRC thinks that you want to echo in the colour of the number $pos returns, this could be your problem.


Link Copied to Clipboard