Raised This Month: $51 Target: $400
 12% 

How hook if plugin throw any error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 12-03-2018 , 14:27   How hook if plugin throw any error
Reply With Quote #1

Hi i want hook if plugin throw error from function crash and save error message for sending to discord.
__________________
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 12-03-2018 , 14:56   Re: How hook if plugin throw any error
Reply With Quote #2

I would periodically check the length of the SM errors file.

Code:
int filelength=0;
When it changes send from filelength to its new length and update filelength to the new length.

This means discord is sent the new chunks only when it updates.
__________________
Neuro Toxin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode