mIRC Homepage
Posted By: Splunge Is something wrong with my script? - 24/01/08 10:53 PM
At line 139, it gets buggy. Instead of sending it to a channel, it gets sent to my main server window.

[snipped]
Posted By: dtox Re: Is something wrong with my script? - 25/01/08 04:46 AM
I don't know!
Posted By: Bekar Re: Is something wrong with my script? - 25/01/08 05:37 AM
How about you tell us why 'it gets buggy' at line 139. Possibly show us some of the error messages?

Also, using $iif() in that fasion is just criminal.. CRIMINAL.. wink
Posted By: LostShadow Re: Is something wrong with my script? - 25/01/08 04:24 PM
Originally Posted By: Splunge
At line 139, it gets buggy.


Since you didn't show us which line is line 139, I was too lazy to count to line 139. And I'm at a school computer so I won't be pasting it into a new remote sheet.

Originally Posted By: Splunge
Instead of sending it to a channel, it gets sent to my main server window.


Well, sending it to the status window would be /echo -s. If this is popups for channel, then use /echo -a.

-Neal.
Posted By: Splunge Re: Is something wrong with my script? - 25/01/08 06:43 PM
Per Neal's reply,

Originally Posted By: LostShadow
Originally Posted By: Splunge
At line 139, it gets buggy.


Since you didn't show us which line is line 139, I was too lazy to count to line 139. And I'm at a school computer so I won't be pasting it into a new remote sheet.

Originally Posted By: Splunge
Instead of sending it to a channel, it gets sent to my main server window.


Well, sending it to the status window would be /echo -s. If this is popups for channel, then use /echo -a.

-Neal.


Well, the popup is not in the channel, but in the main bar as it uses a DLL to make sure it stays on the top bar.
Actually, line 139 is this
Php Code:
alias -l lag.msg { $iif($active ischan,msg # Currently my lag is: $lag.isms($hget(txlag,curlag))) } 


What do you suggest as a rewrite?
Posted By: LostShadow Re: Is something wrong with my script? - 25/01/08 06:48 PM
Well then.

Quote:
Instead of sending it to a channel, it gets sent to my main server window.


I don't see how msg # will send it to the status window. This is, of course, assuming by server window you meant status window. Is it something else?
Posted By: Riamus2 Re: Is something wrong with my script? - 25/01/08 09:32 PM
Your problem is most likely the comma in the $true section of the $iif. As with most commands in mIRC, you cannot use the character that's used for separating arguments within an argument. Because the comma separates the items in the $iif, it cannot be used in any part of the $iif. Either change the $iif to an IF, or try changing the comma to $chr(44) and see if that works, or else put the $hget stuff into a variable and then put the variable in the $iif.
© mIRC Discussion Forums