View Single Post
S p i NNN
Junior Member
Join Date: Nov 2011
Old 11-11-2012 , 16:50   Re: Play or Be Kicked 1.5.243
Reply With Quote #462

O_o, there is still conversation about this plugin. ))) And Brad Jones is in the topic. )
I couldn't read all topic pages and I found some problem in the source.
So, does somebody use notification? It is wrong.
This one wrong:
PHP Code:
set_task(float(CHECK_FREQ), "check_players"___"b");   set_task(float(CHECK_FREQ), "check_players"___"b"); 
And this one wrong:
PHP Code:
determine_spec_time_elapsed(id)
{
    new 
timeElapsed 0;

    if (
get_pcvar_num(g_cvar_specQuery))
    {
        
g_timeSpecQuery[id] += CHECK_FREQ;
        
        if (
g_timeSpecQuery[id] == 45)
        {
            
display_spec_query(id);
        }
        else if (
g_timeSpecQuery[id] >= 55)
        {
            
timeElapsed g_timeSpecQuery[id] - CHECK_FREQ;
            
g_timeSpecQuery[id] = CHECK_FREQ;
        }
    }
    else
    {    
        
timeElapsed CHECK_FREQ;
    }

    return 
timeElapsed;

Also, this is wrong too.
PHP Code:
public plugin_cfg()
{
    new 
configDir[255];
    
formatex(configDir[get_configsdir(configDirsizeof(configDir)-1)], sizeof(configDir)-1"/");
    
server_cmd("exec %spbk.cfg"configDir);
    
server_exec();
    
    
get_pcvar_string(g_cvar_joinImmunityg_joinImmunitysizeof(g_joinImmunity)-1);
    
get_pcvar_string(g_cvar_specImmunityg_specImmunitysizeof(g_specImmunity)-1);
    
get_pcvar_string(g_cvar_afkImmunityg_afkImmunitysizeof(g_afkImmunity)-1);    

    
cycle_log_files("pbk"clamp(get_pcvar_num(g_cvar_logCnt), 011)); // must keep between 0 and 11 months

    
register_menucmd(register_menuid("pbk_AreYouThere"), (1<<0)|(1<<1), "query_answered");
    
    
set_task(float(CHECK_FREQ), "check_players"___"b");    set_task(float(CHECK_FREQ), "check_players"___"b");

And Spec Checker has bug too...


Last edited by S p i NNN; 11-15-2012 at 05:41.
S p i NNN is offline