Author Topic: help with function OnError(ErrorMsg)  (Read 1646 times)

0 Members and 1 Guest are viewing this topic.

Offline blackwings

  • Scripter
  • King
  • ******
  • Posts: 986
  • Karma: +12/-8
help with function OnError(ErrorMsg)
« 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  
Code: [Select]
sBot = "#ErrorMsg"

ToWho = "opname"

function OnError(ErrorMsg)
SendPmToNick(ToWho, sBot, ErrorMsg)
end


PtokaX forum

help with function OnError(ErrorMsg)
« on: 07 September, 2005, 10:50:40 »

Offline Dessamator

  • Scripter
  • Emperor
  • ******
  • Posts: 1 262
  • Karma: +13/-9
(No subject)
« Reply #1 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".
Ignorance is Bliss.

Offline blackwings

  • Scripter
  • King
  • ******
  • Posts: 986
  • Karma: +12/-8
(No subject)
« Reply #2 on: 07 September, 2005, 10:58:28 »
Quote
Originally 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


Offline Dessamator

  • Scripter
  • Emperor
  • ******
  • Posts: 1 262
  • Karma: +13/-9
(No subject)
« Reply #3 on: 07 September, 2005, 14:41:04 »
Goodie :)
Ignorance is Bliss.

PtokaX forum

(No subject)
« Reply #3 on: 07 September, 2005, 14:41:04 »