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
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-18-2014 , 03:53   Re: Non player is out of range?
Reply With Quote #3

use the code exactly like I provided to you..

only add formatex and hudmessage, nothing else

Last edited by baneado; 08-18-2014 at 03:56.
baneado is offline
proffs
Senior Member
Join Date: Jul 2013
Old 08-18-2014 , 04:00   Re: Non player is out of range?
Reply With Quote #4

Quote:
Originally Posted by baneado View Post
use the code exactly like I provided to you..

only add formatex and hudmessage, nothing else
That's what I did... I have to return some functions like 4 times now.






EDIT: and it still doesn't work... Dont get extra bullet

Last edited by proffs; 08-18-2014 at 04:13.
proffs is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-18-2014 , 07:07   Re: Non player is out of range?
Reply With Quote #5

The warning is because you didn't use the code exactly has he wrote it. You added code to it other than the formats.
__________________
fysiks is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-18-2014 , 18:09   Re: Non player is out of range?
Reply With Quote #6

first, you must replace "weapon_*" to the weapon you want

second, eDeath is an event, so you can't use fakemeta defines...
return FMRES_IGNORED
->
return

third, increase szKillMSG cells to save more characters on the string

Last edited by baneado; 08-18-2014 at 18:12. Reason: typos, better english now
baneado is offline
proffs
Senior Member
Join Date: Jul 2013
Old 08-24-2014 , 16:02   Re: Non player is out of range?
Reply With Quote #7

Quote:
Originally Posted by baneado View Post
first, you must replace "weapon_*" to the weapon you want

second, eDeath is an event, so you can't use fakemeta defines...
return FMRES_IGNORED
->
return

third, increase szKillMSG cells to save more characters on the string
Still doesn't work.
proffs 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