Raised This Month: $ Target: $400
 0% 

[FIX REQ] Bazooka plugin error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Dare.Devil
Member
Join Date: May 2014
Old 08-16-2014 , 16:29   Re: [FIX REQ] Bazooka plugin error
Reply With Quote #6

now here's another error that comes up

L 08/16/2014 - 221:01: [AMXX] Displaying debug trace (plugin "bazooka_fixed.amxx")
L 08/16/2014 - 221:01: [AMXX] Run time error 10: native error (native "cs_get_user_plant")
L 08/16/2014 - 221:01: [AMXX] [0] bazooka_fixed.sma::client_disconnect (line 395)

anyone help please?!
PHP Code:
public client_disconnect(id) {
/* Notes:
i now think that using switch_hands() here is too late to
put the player's cl_righthand cvar back to normal

I think i need to find an event that happens just before the player dc's
*/
    
ammo_hud(id0)
    if (
get_cvar_num("amx_bazooka_autohands") == 1) {
        
switch_hands(id,0)
    }
    
Munni[id] = 0
    user_controll
[id] = 0
    hasBazooka
[id] = false
    
if ((cs_get_user_plant(id) == 1) || cantswitch) {
        
cs_set_user_plant(id,0,0)
        
cantswitch  false
        
//if this person had the bomb out and dc'ed then the other players can now access the bomb
    
}

Dare.Devil is offline
 



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 13:16.


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