[INC] debug

For scripting examples for learning how to use AMXX.
User avatar
Archive-Poster
Posts: 1229
Gender:
United States of America

[INC] debug

Post by Archive-Poster »

Description With this inc file you have a functions to print debug messages, using a debug message you can extract data from server or you can solve problems, depends on your needs.

Code example for testing...

Code: Select all

#include <amxmodx>
#include <debug>

public plugin_init()
{
    debug_log(5, "Plugin Init called" );

    register_clcmd( "test", "ptest" );
}

public ptest(id)
{
    debug_log(5, "ptest(id) Called!" );

    if( is_user_alive(id) )
    {
        debug_log(5, "is_user_alive succesfully filtred!" );
        // your code here.
    }
} 
Documentation Is inside of the file
Attachments
debug.inc.zip
(1.59 KiB) Downloaded 3 times

Who is online

Users browsing this forum: No registered users and 1 guest