PtokaX forum

Development Section => Your Developing Problems => Topic started by: blackwings on 07 September, 2005, 10:50:40

Title: help with function OnError(ErrorMsg)
Post by: blackwings on 07 September, 2005, 10:50:40
Can someone make this function working, so that it sends what
ever error message the script gets to a user when this function is in the script  sBot = "#ErrorMsg"

ToWho = "opname"

function OnError(ErrorMsg)
SendPmToNick(ToWho, sBot, ErrorMsg)
end
Title:
Post by: Dessamator on 07 September, 2005, 10:55:33
I see nothing wrong with it, maybe you arent using it in the script, it wont work if you set it as an external script, unless you use "dofile".
Title:
Post by: blackwings on 07 September, 2005, 10:58:28
QuoteOriginally posted by Dessamator
I see nothing wrong with it, maybe you arent using it in the script, it wont work if you set it as an external script, unless you use "dofile".
I have it in a script :P

Heh, it works now, wierd, a couple of minutes ago it didn't :P
Title:
Post by: Dessamator on 07 September, 2005, 14:41:04
Goodie :)