AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What's the problem? (https://forums.alliedmods.net/showthread.php?t=117985)

crazyeffect 02-06-2010 18:14

What's the problem?
 
PHP Code:

#include <amxmodx>
#include <cstrike>

#define NO_BULLET_WEAPONS_BITSUM ((1<<CSW_C4)|(1<<CSW_KNIFE)|(1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG))

public plugin_init() {
    
register_plugin("New-Era_UnlimitedAmmo""1.0.1""ConorrMcLeod")

    
register_event("CurWeapon""event_curweapon""be""1=1")
}

public 
event_curweapon(id) {
    new 
weaponID=read_data(2)

    if( !(
NO_BULLET_WEAPONS_BITSUM & (1<<weaponID)) ) {
        
cs_set_user_bpammo(idweaponID255)
    }


Well, it causes an error and it comes from cs_set_user_bpammo.

The author is banned, so i can't ask it there :D

Quote:

L 02/06/2010 - 15:38:12: [CSTRIKE] Invalid weapon id 0
L 02/06/2010 - 15:38:12: [AMXX] Displaying debug trace (plugin "ne_unlimitedammo.amxx")
L 02/06/2010 - 15:38:12: [AMXX] Run time error 10: native error (native "cs_set_user_bpammo")
L 02/06/2010 - 15:38:12: [AMXX] [0] ne_unlimitedammo.sma::event_curweapon (line 24)

Seta00 02-06-2010 19:20

Re: What's the problem?
 
ConorMcLeod is banned??

Kreation 02-06-2010 19:23

Re: What's the problem?
 
I don't believe that is the actually ConnorMcLeod..

fysiks 02-06-2010 19:24

Re: What's the problem?
 
Quote:

Originally Posted by Seta00 (Post 1080956)
ConorMcLeod is banned??

lol, I went and checked his profile because I thought it sounded strange :).

crazyeffect 02-12-2010 11:40

Re: What's the problem?
 
Nono, the author of this plugin is banned.

Conorr made a remake of it, but the error keeps occuring.


All times are GMT -4. The time now is 07:20.

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