AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   plugin error (https://forums.alliedmods.net/showthread.php?t=155143)

ghostkiller 04-18-2011 04:07

plugin error
 
1 Attachment(s)
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

Miko000000 04-18-2011 04:17

Re: plugin error
 
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>


Arkshine 04-18-2011 04:25

Re: plugin error
 
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.

ghostkiller 04-18-2011 04:27

Re: plugin error
 
ok thx.....
but what should i do to remedy the situation.

and i would like to say thx for replying


All times are GMT -4. The time now is 19:55.

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