Raised This Month: $51 Target: $400
 12% 

[v2.5.2, March 19] Trouble in Terrorist Town mod


Post New Thread Reply   
 
Thread Tools Display Modes
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 05-23-2015 , 05:01   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #411

Check log files and insert errors here using code tags pls.
Quote:
[code]
your log
[code]
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 05-23-2015 , 08:14   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #412

Quote:
Originally Posted by GuskiS View Post
Check log files and insert errors here using code tags pls.
Code:
L 05/23/2015 - 13:00:18: Info (map "ttt_westwood") (file "addons/amxmodx/logs/error_20150523.log")
L 05/23/2015 - 13:00:18: [AMXX] Plugin file open error (plugin "disabled")
L 05/23/2015 - 13:00:19: [AMXX] Run time error 1 (plugin "welcome_msg.amxx") - forced exit
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_c4.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_c4.sma::ttt_plugin_cfg (line 81)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_jihad.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_jihad.sma::ttt_plugin_cfg (line 46)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_hp.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_hp.sma::ttt_plugin_cfg (line 45)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_dna.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_dna.sma::ttt_plugin_cfg (line 54)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_defarmor.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_defarmor.sma::ttt_plugin_cfg (line 34)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_deathstation.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_deathstation.sma::ttt_plugin_cfg (line 38)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_silencedusp.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_silencedusp.sma::ttt_plugin_cfg (line 64)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_knife.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_knife.sma::ttt_plugin_cfg (line 89)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_ump.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_ump.sma::ttt_plugin_cfg (line 55)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_teleport.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_teleport.sma::ttt_plugin_cfg (line 21)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_revolver.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_revolver.sma::ttt_plugin_cfg (line 59)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10 (plugin "ttt_item_golden.amxx") (native "ttt_buymenu_add") - debug not enabled!
L 05/23/2015 - 13:00:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_awp.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_awp.sma::ttt_plugin_cfg (line 55)
L 05/23/2015 - 13:00:22: Called dynanative into a paused plugin.
L 05/23/2015 - 13:00:22: [AMXX] Displaying debug trace (plugin "ttt_item_newton.amxx", version "2.5.2")
L 05/23/2015 - 13:00:22: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:00:22: [AMXX]    [0] ttt_item_newton.sma::ttt_plugin_cfg (line 69)
L 05/23/2015 - 13:01:42: Start of error session.
L 05/23/2015 - 13:01:42: Info (map "ttt_westwood") (file "addons/amxmodx/logs/error_20150523.log")
L 05/23/2015 - 13:01:42: [AMXX] Plugin file open error (plugin "disabled")
L 05/23/2015 - 13:01:43: [AMXX] Plugin ("welcome_msg.amxx") is setting itself as failed.
L 05/23/2015 - 13:01:43: [AMXX] Plugin says: This Is [IOG] Plugins.. By- Vikas Sharma
L 05/23/2015 - 13:01:43: [AMXX] Run time error 1 (plugin "welcome_msg.amxx") - forced exit
L 05/23/2015 - 13:01:45: Called dynanative into a paused plugin.
L 05/23/2015 - 13:01:45: [AMXX] Displaying debug trace (plugin "ttt_item_c4.amxx", version "2.5.2")
L 05/23/2015 - 13:01:45: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:01:45: [AMXX]    [0] ttt_item_c4.sma::ttt_plugin_cfg (line 81)
L 05/23/2015 - 13:01:45: Called dynanative into a paused plugin.
L 05/23/2015 - 13:01:45: [AMXX] Displaying debug trace (plugin "ttt_item_jihad.amxx", version "2.5.2")
L 05/23/2015 - 13:01:45: [AMXX] Run time error 10: native error (native "ttt_buymenu_add")
L 05/23/2015 - 13:01:45: [AMXX]    [0] ttt_item_jihad.sma::ttt_plugin_cfg (line 46)
L 05/23/2015 - 13:01:45: Called dynanative into a paused plugin.
L 05/23/2015 - 13:01:45: [AMXX] Displaying debug trace (plugin "ttt_item_hp.amxx", version "2.5.2")
Awesome_man is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 05-23-2015 , 10:18   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #413

Why are you unable to compile those plugins?
Post those compile errors.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 05-23-2015 , 11:09   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #414

Quote:
Originally Posted by GuskiS View Post
Why are you unable to compile those plugins?
Post those compile errors.
[IMG]http://s12.************/hzfq7karx/image.png[/IMG]

[IMG]http://s14.************/8mkiqxx1t/image.png[/IMG]
Awesome_man is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 05-23-2015 , 12:25   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #415

You are still compiling old version files -.-
Copy all files inside the scripting from archive to your scripting folder.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 05-23-2015 , 12:59   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #416

Quote:
Originally Posted by GuskiS View Post
You are still compiling old version files -.-
Copy all files inside the scripting from archive to your scripting folder.
Dude i'm doing that only just 2 plugin failed to compile and running plugins giving error

Here is the ttt antrietary code which i'm compiling its from you latest version

Code:
#include <amxmodx>
#include <sqlx>
#include <ttt>

#pragma defclasslib sqlite sqlite
new Handle:g_pSqlTuple;
new g_szUserIP[33][20];
new cvar_antiretry, g_iDataBaseType;

public plugin_init()
{
    register_plugin("[TTT] AntiRetry system", TTT_VERSION, TTT_AUTHOR);

    cvar_antiretry     = my_register_cvar("ttt_antiretry", "2", "AntiRetry 0/1/2 off/MySQL/Sqlite. (Default: 2)");
}

public plugin_cfg()
    set_task(0.1, "delayed_plugin_cfg");

public delayed_plugin_cfg()
{
    MySQL_Init();
}

public plugin_end()
{
    table_clear();
    if(g_pSqlTuple)
        SQL_FreeHandle(g_pSqlTuple);
}

public client_putinserver(id)
{
    g_szUserIP[id][0] = EOS;
    if(is_user_bot(id))
        return;

    get_user_ip(id, g_szUserIP[id], charsmax(g_szUserIP[]), 1);
    MySQL_Load(id);
}

public client_disconnect(id)
{
    MySQL_Save(id);
}

public ttt_gamemode(gamemode)
{
    if(gamemode == GAME_RESTARTING)
    {
        table_clear();
        new num;
        static players[32];
        get_players(players, num);
        for(--num; num >= 0; num--)
            table_insert(players[num]);
    }
}

public MySQL_Init()
{
    g_iDataBaseType = get_pcvar_num(cvar_antiretry);
    if(g_iDataBaseType == 1)
    {
        new host[64], user[33], pass[32], db[32];
        get_cvar_string("amx_sql_host", host, charsmax(host));
        get_cvar_string("amx_sql_user", user, charsmax(user));
        get_cvar_string("amx_sql_pass", pass, charsmax(pass));
        get_cvar_string("amx_sql_db", db, charsmax(db));
        g_pSqlTuple = SQL_MakeDbTuple(host, user, pass, db);
    }
    else if(g_iDataBaseType == 2)
    {
        SQL_SetAffinity("sqlite");
        g_pSqlTuple = SQL_MakeDbTuple("localhost", "root", "", "ttt_antiretry");

    }
    else set_fail_state("[TTT] CVAR set wrongly, plugin turning off!");

    new error[128];
    new code, Handle:connection = SQL_Connect(g_pSqlTuple, code, error, charsmax(error));
    if(connection == Empty_Handle)
        set_fail_state(error);

    new Handle:queries;
    if(g_iDataBaseType == 1)
    {
        queries = SQL_PrepareQuery(connection, 
            "CREATE TABLE IF NOT EXISTS ttt_antiretry(\
                id int unsigned NOT NULL AUTO_INCREMENT, \
                ip varchar(20) UNIQUE NOT NULL default '', \
                karma int(8), \
                warnings_s int(3), \
                warnings_i int(3), \
                punish int(3), \
                PRIMARY KEY (id)\
            );"
        );
    }
    else if(g_iDataBaseType == 2)
    {
        queries = SQL_PrepareQuery(connection, 
            "CREATE TABLE IF NOT EXISTS ttt_antiretry(\
                id INTEGER PRIMARY KEY, \
                ip CHAR(20) UNIQUE NOT NULL DEFAULT '', \
                karma INTEGER, \
                warnings_s INTEGER, \
                warnings_i INTEGER, \
                punish INTEGER\
            );"
        );
    }
    if(!SQL_Execute(queries))
    {
        SQL_QueryError(queries, error, charsmax(error));
        set_fail_state(error);
    }

    SQL_FreeHandle(queries);
    SQL_FreeHandle(connection);
    table_clear();
}

public MySQL_Load(id)
{
    new data[2];
    data[0] = id;

    static temp[96];
    formatex(temp, charsmax(temp), "SELECT * FROM ttt_antiretry WHERE ip = ^"%s^";", g_szUserIP[id]);
    SQL_ThreadQuery(g_pSqlTuple, "MySQL_LoadData", temp, data, 1);
}

public MySQL_Save(id)
{
    if(!g_szUserIP[id][0])
        return;

    static warnings[TTT_WARNINGS];
    ttt_get_warnings(id, warnings);
    static temp[192];
    if(warnings[WARN_BANNED])
        formatex(temp, charsmax(temp), "UPDATE ttt_antiretry SET karma = '500', warnings_s = '0', warnings_i = '0', punish = '0' WHERE ip = ^"%s^";", g_szUserIP[id]);
    else formatex(temp, charsmax(temp), "UPDATE ttt_antiretry SET karma = '%d', warnings_s = '%d', warnings_i = '%d', punish = '%d' WHERE ip = ^"%s^";", ttt_get_playerdata(id, PD_KARMATEMP), warnings[WARN_SPECIAL], warnings[WARN_INNOCENT], warnings[WARN_PUNISH], g_szUserIP[id]);

    SQL_ThreadQuery(g_pSqlTuple, "MySQL_FreeHandle", temp);
}

public MySQL_LoadData(failstate, Handle:query, error[], code, data[], datasize)
{
    if(failstate == TQUERY_CONNECT_FAILED)
        log_amx("[TTT] Load - Could not connect to SQL database.  [%d] %s", code, error);
    else if(failstate == TQUERY_QUERY_FAILED)
        log_amx("[TTT] Load query failed. [%d] %s", code, error);

    new id = data[0];
    if(!is_user_connected(id))
    {
        SQL_FreeHandle(query);
        return PLUGIN_HANDLED;
    }

    if(SQL_NumResults(query) > 0) 
    {
        static warnings[TTT_WARNINGS];
        new karma = SQL_ReadResult(query, 2);
        new warnings_s = SQL_ReadResult(query, 3);
        new warnings_i = SQL_ReadResult(query, 4);
        new punish = SQL_ReadResult(query, 5);

        if(karma > 0)
        {
            ttt_set_playerdata(id, PD_KARMATEMP, karma);
            ttt_set_playerdata(id, PD_KARMA, karma);
        }

        if(warnings_s > 0)
            warnings[WARN_SPECIAL] = warnings_s;
        if(warnings_i > 0)
            warnings[WARN_INNOCENT] = warnings_i;
        if(punish > 0)
            warnings[WARN_PUNISH] = true;

        ttt_set_warnings(id, warnings);
        SQL_FreeHandle(query);
    }
    else
    {
        SQL_FreeHandle(query);
        table_insert(id);
    }

    return PLUGIN_HANDLED;
}

public MySQL_FreeHandle(failstate, Handle:query, error[], errcode, data[], datasize)
{
    SQL_FreeHandle(query);
    return PLUGIN_HANDLED;
}

stock table_clear()
{
    if(g_pSqlTuple)
    {
        if(g_iDataBaseType == 1)
            SQL_ThreadQuery(g_pSqlTuple, "MySQL_FreeHandle", "TRUNCATE TABLE ttt_antiretry;");
        else if(g_iDataBaseType == 2)
            SQL_ThreadQuery(g_pSqlTuple, "MySQL_FreeHandle", "DELETE FROM ttt_antiretry;");
    }
}

stock table_insert(id)
{
    static warnings[TTT_WARNINGS];
    ttt_get_warnings(id, warnings);
    static temp[192];
    formatex(temp, charsmax(temp), "INSERT INTO ttt_antiretry (ip, karma, warnings_s, warnings_i, punish) VALUES (^"%s^", '%d', '%d', '%d', '%d');", g_szUserIP[id], ttt_get_playerdata(id, PD_KARMATEMP), warnings[WARN_SPECIAL], warnings[WARN_INNOCENT], warnings[WARN_PUNISH]);
    SQL_ThreadQuery(g_pSqlTuple, "MySQL_FreeHandle", temp);
}
Awesome_man is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 05-23-2015 , 15:12   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #417

You copied me file with GAME_RESTARTING which is new syntax, but in compile log there is RESTARTING which is the old one. Also TRAITOR DETECTIVE and other should start with TTT_ which is new syntax.
__________________
Finished mods:
Trouble in Terrorist Town
MurderMod
The Hidden
Cowboys vs Indians
JailBreak Supreme
Survival Madness
GuskiS is offline
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 05-24-2015 , 02:13   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #418

Quote:
Originally Posted by GuskiS View Post
You copied me file with GAME_RESTARTING which is new syntax, but in compile log there is RESTARTING which is the old one. Also TRAITOR DETECTIVE and other should start with TTT_ which is new syntax.
Can you please give me compiled file ?
Awesome_man is offline
LongQuad
Member
Join Date: Feb 2012
Old 05-26-2015 , 00:50   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #419

Hey bro, I need some help.

I have my server and it have Dproto plugin.
Can you help me to make it work for protocol 47 people? Thanks, add me to steam if you want: longquad
__________________
LongQuad is offline
LongQuad
Member
Join Date: Feb 2012
Old 05-26-2015 , 14:26   Re: [v2.5.2, March 19] Trouble in Terrorist Town mod
Reply With Quote #420

Quote:
Originally Posted by LongQuad View Post
Hey bro, I need some help.

I have my server and it have Dproto plugin.
Can you help me to make it work for protocol 47 people? Thanks, add me to steam if you want: longquad
Problem solved, just disable ttt_exploit or something like that plugin


------------------------------------------------------------------------------------------------------------------


I have a problem, i can't buy nothing from the shop being traitor or detective.
All the TTT plugins are working.
__________________
LongQuad 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 05:47.


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