Raised This Month: $ Target: $400
 0% 

Help finding bombsite :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ke3ller
Member
Join Date: Feb 2013
Old 05-19-2013 , 16:20   Re: Help finding bombsite :)
Reply With Quote #1

How can I debug?
ke3ller is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-19-2013 , 17:24   Re: Help finding bombsite :)
Reply With Quote #2

I already told you that any line in plugin_init, after :
register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")

is not executed because in the plugin there a no :

public on_damage(id)
{
}

What don't you understand ?

Debugs like this :

PHP Code:
    server_print("Registering DeathMsg...")
    
register_event("DeathMsg""hook_death""a""1>0")
    
server_print("Registered DeathMsg")
    
server_print("Registering Damage...")
    
register_event("Damage""on_damage""b""2!0""3=0""4!0")
    
server_print("Registered Damage")
    
server_print("Searching for bombsites")
    if( 
find_ent_by_class(-1"func_bomb_target") || find_ent_by_class(-1"info_bomb_target") ) //Checks if the map has bombsite
    
{
        
g_bHasBombSite true//If the map has bombsite it is set to true
        
server_print("Bombsites FOUND")
    }
    else
    {
        
server_print("Bombsites NOT FOUND WTF ???!!!!")
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 16:27.


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