Raised This Month: $ Target: $400
 0% 

Non player is out of range?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 08-17-2014 , 13:25   Re: Non player is out of range?
Reply With Quote #1

Quote:
Originally Posted by baneado View Post
post errors.

the code should work as you want
Get this
Warning: Function "eDeath" should return a value on line 979

3,4 times
proffs is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2014 , 17:31   Re: Non player is out of range?
Reply With Quote #2

Quote:
Originally Posted by proffs View Post
Get this
Warning: Function "eDeath" should return a value on line 979

3,4 times
So, what are the errors that are preventing you from compiling your plugin?

To get rid of warnings like that, you need to make sure that if you return a value anywhere in your function that you also return a value in every possible situation in that function.

If it is simply a death message that you are hooking, you don't need to return anything (i.e. you don't return PLUGIN_CONTINUE or PLUGIN_HANDLED) because the return value does nothing. Simply use "return".
__________________

Last edited by fysiks; 08-17-2014 at 17:31.
fysiks 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 12:57.


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