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

Problem with infinite backpack ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alibalali
Member
Join Date: Aug 2014
Old 07-12-2015 , 08:19   Problem with infinite backpack ammo
Reply With Quote #1

I don't remember in which topic I found this plugin. the plugin works fine without any game play problems but I have a small problem with this, when a new round starts If plugin is enable I will receive some errors
Plugin
PHP Code:
/* Formatright © 2009, ConnorMcLeod
 Infinite BpAmmo is free software;
 you can redistribute it and/or modify it under the terms of the
 GNU General Public License as published by the Free Software Foundation.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with Infinite BpAmmo; if not, write to the
 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>
#define VERSION "0.0.1"
new toggle_pluginbmb
enum
{
 
AmmoX_AmmoID 1,
 
AmmoX_Ammount
}
enum
{
 
ammo_none,
 
ammo_338magnum 1// 30
 
ammo_762nato// 90
 
ammo_556natobox// 200
 
ammo_556nato// 90
 
ammo_buckshot// 32
 
ammo_45acp// 100
 
ammo_57mm// 100
 
ammo_50ae// 35
 
ammo_357sig// 52
 
ammo_9mm// 120
 
ammo_flashbang// 2
 
ammo_hegrenade// 1
 
ammo_smokegrenade// 1
 
ammo_c4 // 1
}
new const 
g_iMaxBpAmmo[] = {
 
0,
 
30,
 
90,
 
200,
 
90,
 
32,
 
100,
 
100,
 
35,
 
52,
 
120,
 
2,
 
1,
 
1,
 
1
}
#define XO_PLAYER 5
#define m_rgpPlayerItems_0 376
public plugin_init()
{
 
toggle_pluginbmb register_cvar("amx_infammo""0")
 
register_plugin("Infinite BpAmmo"VERSION"ConnorMcLeod")
 
 
register_message(get_user_msgid("AmmoX"), "Message_AmmoX")
}
public 
Message_AmmoX(iMsgIdiMsgDestid)
{
 if(
get_pcvar_num(toggle_pluginbmb)==1)
 {
  new 
iAmmoID11 get_msg_arg_int(AmmoX_AmmoID)
  if( 
is_user_alive(id) && iAmmoID11 !=0)
  {
   new 
iMaxBpAmmo11 g_iMaxBpAmmo[iAmmoID11]
   if( (
get_msg_arg_int(AmmoX_Ammount) < iMaxBpAmmo11) && ( iAmmoID11 != ammo_c4 ) )
   {
    if( 
iAmmoID11 <= ammo_9mm )
    {
     
set_msg_arg_int(AmmoX_AmmountARG_BYTEiMaxBpAmmo11)
     
set_pdata_int(idm_rgpPlayerItems_0 iAmmoID11iMaxBpAmmo11XO_PLAYER)
    }
   }
  }
 }

and errors
PHP Code:
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0infinite_bpammo_light.sma::Message_AmmoX (line 85)
L 07/12/2015 14:19:59: [AMXXDisplaying debug trace (plugin "infinite_bpammo_light.amxx"version "0.0.1")
L 07/12/2015 14:19:59: [AMXXRun time error 4index out of bounds 
L 07
/12/2015 14:19:59: [AMXX]    [0
__________________
Going to be Banned

Last edited by alibalali; 07-12-2015 at 08:22.
alibalali 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 11:26.


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