Raised This Month: $ Target: $400
 0% 

plugin error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostkiller
Junior Member
Join Date: Aug 2010
Location: DK
Old 04-18-2011 , 04:07   plugin error
Reply With Quote #1

i know that we should contact the author of the plugin but he has stated already that he has no time to support the plugin

it is furien_weapon where i get error messages

L 04/18/2011 - 03:56:22: [CSTRIKE] Invalid weapon id 29
L 04/18/2011 - 03:56:22: [AMXX] Displaying debug trace (plugin "furien_weapons.amxx")
L 04/18/2011 - 03:56:22: [AMXX] Run time error 10: native error (native "cs_get_user_bpammo")
L 04/18/2011 - 03:56:22: [AMXX] [0] furien_weapons.sma::GiveAutoWeapons (line 240)
L 04/18/2011 - 03:56:22: [AMXX] [1] furien_weapons.sma::Ham_CBasePlayer_Spawn_Pos t (line 174)
L 04/18/2011 - 03:56:24: [CSTRIKE] Invalid weapon id 29
L 04/18/2011 - 03:56:24: [AMXX] Displaying debug trace (plugin "furien_weapons.amxx")
L 04/18/2011 - 03:56:24: [AMXX] Run time error 10: native error (native "cs_get_user_bpammo")
L 04/18/2011 - 03:56:24: [AMXX] [0] furien_weapons.sma::GiveAutoWeapons (line 240)
L 04/18/2011 - 03:56:24: [AMXX] [1] furien_weapons.sma::Ham_CBasePlayer_Spawn_Pos t (line 174)

how can i remedy this situation
Attached Files
File Type: sma Get Plugin or Get Source (furien_weapons.sma - 652 views - 5.9 KB)
__________________
ghostkiller is offline
Miko000000
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 04-18-2011 , 04:17   Re: plugin error
Reply With Quote #2

First mistake is here
Code:
#include "furien.inc"
#include "furien_shop.inc
"

If you want to include some file with .inc you will write it like :
Code:
#include <furien>
#include <furien_shop>
Miko000000 is offline
Send a message via ICQ to Miko000000 Send a message via Skype™ to Miko000000
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-18-2011 , 04:25   Re: plugin error
Reply With Quote #3

That's not a mistake and his errors has nothing to do with that.

Here, the code doesn't check if the weapon is a knife or not, so cs_get_user_bpammo could be called with the knife (29 = CSW_KNIFE) and that's why it throws an error.
__________________
Arkshine is offline
ghostkiller
Junior Member
Join Date: Aug 2010
Location: DK
Old 04-18-2011 , 04:27   Re: plugin error
Reply With Quote #4

ok thx.....
but what should i do to remedy the situation.

and i would like to say thx for replying
__________________
ghostkiller 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 19:55.


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