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

Quick Question about ReportError vs ThrowNativeError


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chief149
Member
Join Date: Sep 2010
Old 02-07-2016 , 21:50   Quick Question about ReportError vs ThrowNativeError
Reply With Quote #1

So I have been coding a custom extension to make my RP plugin be more object oriented with less code being repeated, and while coding some of the natives, I found that I've been using a depreciated function. Now, the tutorial for writing extensions must be outdated because that's where I learned to use ThrowNativeError when checking to make sure that the provided handle was of the valid type.

Anyways, ThrowNativeError is depreciated, and the docs say to use ReportError instead.

My question is, does ReportError also halt execution of the function like ThrowNativeError does?
Chief149 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-09-2016 , 06:37   Re: Quick Question about ReportError vs ThrowNativeError
Reply With Quote #2

Yes.
__________________
asherkin 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 17:24.


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