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

"war3ft.amxx" (linie 565) error


Post New Thread Reply   
 
Thread Tools Display Modes
M3h1gh
Junior Member
Join Date: May 2018
Old 06-19-2018 , 19:03   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #11

thank you I found the right info...

Warcraft 3 Frozen RC15 2018 WISHEXEC, Geesu, war3ft.amxx debug

but its in debug mode....
M3h1gh is offline
M3h1gh
Junior Member
Join Date: May 2018
Old 06-19-2018 , 19:27   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #12

I found it , THANKS.
Warcraft 3 Frozen RC15 2018 WISHEXEC, Geesu, war3ft.amxx debug

Its in debug mode , together with the rank
RRT 0.3.1 Ex3cuTioN/Arion rank_rankstats_ debug
M3h1gh is offline
CrAzY MaN
Senior Member
Join Date: Mar 2017
Location: India
Old 06-20-2018 , 00:35   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #13

I think the problem would be forgetting "CsTeams:"
PHP Code:
new CsTeams:something cs_get_user_team(someone
__________________
CrAzY MaN is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-20-2018 , 01:26   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #14

Most of the cstrike natives throw an error if a player is not connected and/or is not a player index, they do not check for those.

This is the issue here. But we can't of course help him, without the proper source.
__________________
stuff

Last edited by maqi; 06-20-2018 at 01:27.
maqi is offline
M3h1gh
Junior Member
Join Date: May 2018
Old 06-20-2018 , 01:58   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #15

Guys i'm still searching for the source of the Bug.
I'm getting closer , I found another error .
I'm progressiv3 )

wc3_errorlog

L 06/20/2018 - 08:00:44: [MYSQLX] Error in querying database, location: 1
L 06/20/2018 - 08:00:44: [MYSQLX] Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TYPE=MyISAM' at line 1 (1064)
L 06/20/2018 - 08:00:44: [MYSQLX] Query statement: CREATE TABLE IF NOT EXISTS `wc3_player` ( `player_id` int( unsigned NOT NULL auto_increment, `player_steamid` varchar(25) NOT NULL default '', `player_ip` varchar(20) NOT NULL default '', `player_name` varchar(35) NOT NULL default '', `time` timestamp(6) NOT NULL, PRIMARY KEY (`player_id`), KEY `player_name` (`player_name`), KEY `player_ip` (`player_ip`), KEY `player_steamid` (`player_steamid`) ) TYPE=MyISAM;


I Think i can solve this direct in the game with wc3_player ..... just have to find the right parameters.

Last edited by M3h1gh; 06-20-2018 at 02:00.
M3h1gh is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-20-2018 , 01:59   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #16

That has nothing to do with the error you sent earlier
__________________
stuff
maqi is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 06-20-2018 , 02:59   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #17

this should be your sma file, if you want to work with complex plugins, learn the basic stuff first!

PHP Code:
/* AMX Mod X
*   Warcraft 3 Frozen Throne
*
*  by Geesu
*  http://www.war3ft.com
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the
*  Free Software Foundation; either version 2 of the License, or (at
*  your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*  General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation,
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to
*  link the code of this program with the Half-Life Game Engine ("HL
*  Engine") and Modified Game Libraries ("MODs") developed by Valve,
*  L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs
*  from Valve. If you modify this file, you may extend this exception
*  to your version of the file, but you are not obligated to do so. If
*  you do not wish to do so, delete this exception statement from your
*  version.
*/

#pragma tabsize            0
//#pragma semicolon        1

new const WC3NAME[]        =    "Warcraft 3 Frozen Throne";
new const 
WC3AUTHOR[]    =    "Geesu, Avanderik & YamiKaitou";
new const 
WC3VERSION[]    =    "3.0 RC13";
new const 
WC3DATE[]        =    __DATE__;

// Let AMX X know that we NEED these modules (as of amx x 1.75)
#pragma reqclass    xstats
#pragma reqlib        engine
#pragma reqlib        fun
#pragma reqlib        fakemeta
#pragma reqlib        cstrike
#pragma reqlib        dodfun
#pragma loadlib        sqlite
#pragma loadlib        mysql

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <fakemeta>
#include <cstrike>
#include <dodfun>
#include <dodx>
#include <dbi>
#include <sqlx>
#include <hamsandwich>

// Header files that contain function declarations and variables
#include "war3ft/constants.inl"
#include "war3ft/db/db_common.h"
#include "war3ft/db/db_mysqlx.h"
#include "war3ft/db/db_sqlite.h"
#include "war3ft/items.h"
#include "war3ft/dod_h.inl"
#include "war3ft/XP.h"
#include "war3ft/war3ft.h"
#include "war3ft/cstrike.h"
#include "war3ft/menus.h"
#include "war3ft/shared.h"
#include "war3ft/ultimates.h"

// Source Code
#include "war3ft/cvar.inl"

#include "war3ft/race_undead.inl"           // Undead Scourge   - 1
#include "war3ft/race_human.inl"            // Human Alliance    - 2
#include "war3ft/race_orc.inl"                // Orcish Horde        - 3
#include "war3ft/race_elf.inl"                // Night Elf        - 4
#include "war3ft/race_blood.inl"            // Blood Mage        - 5
#include "war3ft/race_shadow.inl"            // Shadow Hunter    - 6
#include "war3ft/race_warden.inl"           // Warden           - 7
#include "war3ft/race_crypt.inl"            // Crypt Lord       - 8
#include "war3ft/race_chameleon.inl"        // Chameleon        - 9

#include "war3ft/forwards.inl"
#include "war3ft/effects.inl"
#include "war3ft/XP.inl"
#include "war3ft/db/db_mysqlx.inl"
#include "war3ft/db/db_sqlite.inl"
#include "war3ft/db/db_common.inl"
#include "war3ft/war3ft.inl"
#include "war3ft/events.inl"
#include "war3ft/clientCommands.inl"
#include "war3ft/items.inl"
#include "war3ft/stocks.inl"
#include "war3ft/shared.inl"
#include "war3ft/menus.inl"
#include "war3ft/motd.inl"
#include "war3ft/language.inl"
#include "war3ft/admin.inl"
#include "war3ft/ultimates.inl"
#include "war3ft/util.inl"
#include "war3ft/skill_manager.inl"

#include "war3ft/cstrike.inl"
#include "war3ft/dod.inl"

public plugin_init()
{
    
register_pluginWC3NAMEWC3VERSIONWC3AUTHOR );
    
    
WC3_DetermineGame();

    
gmsgDeathMsg        get_user_msgid"DeathMsg"    );
    
gmsgScreenFade        get_user_msgid"ScreenFade"    );
    
gmsgScreenShake        get_user_msgid"ScreenShake"    );
    
gmsgScoreInfo        get_user_msgid"ScoreInfo"    );
    

    
register_concmd"playerskills"        "CMD_Handler"        , -);

    
register_clcmd"debug"                "CMD_Handler"        , -);
    
register_clcmd"levitation"        "CMD_Handler"        , -);
    
register_clcmd"war3menu"            "CMD_Handler"        , -);
    
register_clcmd"changerace"        "CMD_Handler"        , -);
    
register_clcmd"selectskill"        "CMD_Handler"        , -);
    
register_clcmd"skillsinfo"        "CMD_Handler"        , -);
    
register_clcmd"resetskills"        "CMD_Handler"        , -);
    
register_clcmd"resetxp"            "CMD_Handler"        , -);
    
register_clcmd"itemsinfo"            "CMD_Handler"        , -);
    
register_clcmd"itemsinfo2"        "CMD_Handler"        , -);
    
register_clcmd"shopmenu"            "CMD_Handler"        , -);
    
register_clcmd"shopmenu2"            "CMD_Handler"        , -);
    
register_clcmd"ability"            "CMD_Handler"        , -);
    
register_clcmd"ankh"                "CMD_Handler"        , -);
    
register_clcmd"amulet"            "CMD_Handler"        , -);
    
register_clcmd"boots"                "CMD_Handler"        , -);
    
register_clcmd"claws"                "CMD_Handler"        , -);
    
register_clcmd"cloak"                "CMD_Handler"        , -);
    
register_clcmd"chameleon"            "CMD_Handler"        , -);
    
register_clcmd"frost"                "CMD_Handler"        , -);
    
register_clcmd"gloves"            "CMD_Handler"        , -);
    
register_clcmd"health"            "CMD_Handler"        , -);
    
register_clcmd"helm"                "CMD_Handler"        , -);
    
register_clcmd"mask"                "CMD_Handler"        , -);
    
register_clcmd"mole"                "CMD_Handler"        , -);
    
register_clcmd"necklace"            "CMD_Handler"        , -);
    
register_clcmd"rings"                "CMD_Handler"        , -);
    
register_clcmd"socks"                "CMD_Handler"        , -);
    
register_clcmd"scroll"            "CMD_Handler"        , -);
    
register_clcmd"tome"                "CMD_Handler"        , -);
    
register_clcmd"level"                "CMD_Handler"        , -);
    
register_clcmd"say"                "cmd_Say"            , -);
    
register_clcmd"say_team"            "cmd_Say"            , -);
    
register_clcmd"war3help"            "CMD_Handler"        , -);
    
register_clcmd"ultimate"            "cmd_Ultimate"    , -);
    
register_clcmd"fullupdate"        "cmd_fullupdate"    , -);
    
register_clcmd"drop"                "on_Drop"            , -);
    
register_clcmd"jointeam"            "cmd_Jointeam"    , -);

    
// Admin Commands
    
register_concmd"wc3_givexp"        "ADMIN_Handler"        , -" -- Gives XP to players"                );
    
register_concmd"wc3_setlevel"        "ADMIN_Handler"        , -" -- Sets a player's level"                );
    
register_concmd"wc3_giveitem"        "ADMIN_Handler"        , -" -- Gives an item to a player"            );
    
register_concmd"wc3_enable"        "ADMIN_Handler"        , -" -- Enables war3ft"                        );
    
register_concmd"wc3_disable"        "ADMIN_Handler"        , -" -- Disables war3ft"                    );

    
// Depreciated Admin Commands
    
register_concmd"amx_givexp"        "ADMIN_Handler"        , -" -- Gives XP to players"                );

    
// Server Admin Commands (used by external plugins)
    
register_srvcmd"amx_takexp"        "ADMIN_ServerHandler"    );
    
register_srvcmd"changexp"            "ADMIN_ServerHandler"    );

    
// Register forwards (from fakemeta)
    
register_forwardFM_TraceLine        "TRIGGER_TraceLine"    );

    
register_event"DeathMsg"            "on_DeathMsg"        "a"                                );
    
register_event"CurWeapon"            "on_CurWeapon"    "be"    "1=1"                        );
    
register_event"HideWeapon"        "on_CurWeapon"    "b"                                );
//    register_event( "ResetHUD"            , "on_ResetHud"        , "b"                                );
    
register_event"TextMsg"            "on_GameRestart"    "a"    "2&#Game_will_restart_in" );
    
register_event"HLTV"                "EVENT_NewRound"    "a"    "1=0"    ,            "2=0"    );

    
register_dictionary"war3FT.txt");

    
RegisterHamHam_TakeDamage"player""EVENT_TakeDamage" );
    
RegisterHamHam_Spawn"player""EVENT_Spawn"1);

    
// Game Specific Initialization
    
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
    {
        
gmsgBarTime            get_user_msgid"BarTime"        );
        
gmsgStatusText        get_user_msgid"StatusText"    );
        
gmsgStatusIcon        get_user_msgid"StatusIcon"    );

        
register_logevent"on_PlayerAction"        3        "1=triggered"                                );
        
register_logevent"on_FreezeTimeComplete"    2        "0=World triggered"    "1=Round_Start"    );
        
register_logevent"on_EndRound"            2        "0=World triggered"    "1=Round_End"        );

        
register_event"SendAudio"        "on_TerroristWin"        "a"    "2=%!MRAD_terwin"                    );
        
register_event"SendAudio"        "on_CTWin"            "a"    "2=%!MRAD_ctwin"                    );
        
register_event"ArmorType"        "on_ArmorType"        "be"                                        );
        
register_event"Battery"        "on_Battery"            "be"                                        );
        
register_event"WeapPickup"    "on_WeapPickup"        "b"                                        ); 
        
register_event"StatusValue"    "on_ShowStatus"        "be"    "1=2"        ,"2!0"                    );
        
register_event"StatusValue"    "on_HideStatus"        "be"    "1=1"        ,"2=0"                    );
        
register_event"SetFOV"        "on_Zoom"                "be"                                        );
        
register_event"BarTime"        "on_BombPlanting"        "be"    "1=3"                                );
        
register_event"BarTime"        "on_BombStopPlanting"    "b"    "1=0"                                );

        
// Old Style
        
register_menucmdregister_menuid"BuyItem" )    , (1<<3)    , "cmd_hegren"    );

        
// VGUI
        
register_menucmd( -34    , (1<<3)    , "cmd_hegren"    );

        
// Steam
        
register_clcmd"hegren"    "cmd_hegren"    );
        
        
// Old style menu (now its jointeam client command)
        
register_menucmdregister_menuid"Team_Select" )    , (1<<0)|(1<<1)|(1<<4)    , "cmd_Teamselect" );

        
// Condition Zero
        
if ( g_MOD == GAME_CZERO )
        {
            
register_event("TextMsg""on_GameRestart""a""2&#Game_Commencing")
        }
        
// Counter-Strike
        
else
        {
            
register_event("TextMsg""on_GameRestart""a""2&#Game_C")
        }
    }
    else if ( 
g_MOD == GAME_DOD )
    {
        
gmsgHudText get_user_msgid"HudText" );

        
register_statsfwdXMF_SCORE    );
        
register_statsfwdXMF_DAMAGE    );

        
register_event"RoundState"    "EVENT_DOD_EndRound"        "a"    "1=3"    "1=4"    );
    }

    
// Plugin initialization procedures
    
WC3_Init();

    
register_concmd"test""test" );
    
register_concmd"test2""test2" );
}

public 
test2(id)
{
    
/*WC3_Log( true, "[MYSQLX] Attempting to re-establish connection to MySQL server" );
        // Close the connection
        MYSQLX_Close();

        // Re-open the connection
        MYSQLX_Init();*/

    
new players[32], numi;
    
get_playersplayersnum );

    for ( 
0numi++ )
    {
        static 
s_Classname];
        
pev ipev_classnames_Classnamecharsmax s_Classname ) );

        
server_print"%d: %s"is_Classname );
    }
}

public 
test(id)
{
    new 
players[32], numiszName[32];
    
get_playersplayersnum );

    for ( 
0numi++ )
    {
        
get_user_nameplayers[i], szName31 );

        
WC3_Logtrue"**** %s ****"szName );

        
SM_DebugPrintplayers[i] );
        
        
WC3_Logtrue" %s "szName );
    }
}

public 
plugin_end()
{
    new 
szCurMap[32];
    
get_mapnameszCurMap31 );
    
WC3_Logfalse"** Map '%s' ended"szCurMap );

    if ( !
WC3_Check() )
    {
        return;
    }

    if ( !
get_pcvar_numCVAR_wc3_save_xp ) )
    {
        return;
    }
    
    
FWD_Destroy();
    
DB_SaveAllfalse );
    
DB_Prune();
    
DB_Close();


    return;
}

public 
plugin_precache()
{
    
WC3_Precache();
}

public 
client_putinserverid )
{
    if ( !
WC3_Check() )
    {
        return;
    }

    
// Check for steam ID pending
    
static szPlayerID[32];
    
get_user_authididszPlayerID31 );
    
    
// Then the player doesn't have a steam id, lets make them reconnect
    
if ( equal(szPlayerID"STEAM_ID_PENDING") )
    {
        
client_cmdid"reconnect" );
    }

    
// Get the user's ID!
    
DB_FetchUniqueIDid );

    
p_data_b[id][PB_ISCONNECTED] = true;
    
    if ( 
g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
    {
        
// Check user's cvar if the user isn't a bot and if we're not running a 64-bit server
        
if ( !is_user_botid ) && !is_amd64_server() )
        {
            
query_client_cvarid"cl_minmodels""_CS_CheckMinModelsValue" );
        }

        if ( 
g_MOD == GAME_CZERO )
        {
            
// Only want to run this if: mod is CZ (zbot not supported), client is a bot,
            // these are CZ bots (bot_quota), and the ham has not been registed yet.
            
if ( (pev(idpev_flags) & FL_FAKECLIENT) && get_pcvar_num(CVAR_bot_quota) > && !g_bCZBotRegisterHam )
            {
                
// Delay for private data to initialize
                
set_task0.1"CZ_BotHookHam"id )
            }
        }
    }

    
// Start showing the user their money
    
else if ( g_MOD == GAME_DOD )
    {
        
p_data[id][P_MONEY] = get_pcvar_numCVAR_wc3_dod_start_money );
        static 
parm[3];
        
parm[0] = id;
        
parm[1] = 0;
        
_DOD_showMoneyparm );
    }

    return;
}

public 
client_connectid )
{
    if ( !
WC3_Check() )
    {
        return;
    }

    
// Initialize this player
    
WC3_PlayerInitid );

    
client_cmdid"hud_centerid 0" );


    
p_data[id][P_RESPAWNBY]                = 0;
    
p_data[id][P_SPECMODE]                = 0;

    
p_data_b[id][PB_ISBURNING]            = false;
    
p_data_b[id][PB_JUSTJOINED]            = true;
    
p_data_b[id][PB_CAN_RENDER]            = true;
    
p_data_b[id][PB_HAS_SPAWNED]        = false;
    
p_data_b[id][PB_SKINSWITCHED]        = false;

    
// User should have no items on connect...
    
g_iShopMenuItems[id][0] = -1;
    
g_iShopMenuItems[id][1] = -1;

    
// Automatically set their XP if it's enabled
    
if ( get_pcvar_numCVAR_wc3_xp_auto_average ) && !get_pcvar_numCVAR_wc3_save_xp ) )
    {
        new 
iTotalXP;
        new 
iNumi;
        for( 
1<= MAXPLAYERSi++ )
        {
            if ( 
p_data[i][P_XP] > )
            {
                
iNum++;
                
iTotalXP += p_data[i][P_XP];
            }
        }
        if ( 
iNum && iTotalXP )
        {
            
p_data[id][P_XP] = iTotalXP/iNum;
        }
    }

    if ( 
g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
    {
        
p_data[id][P_HECOUNT]        = 0;
        
p_data[id][P_FLASHCOUNT]    = 0;
    }
    else if ( 
g_MOD == GAME_DOD )
    {
        
p_data[id][P_MONEY] = 0;
    }

    
// Reset the "cheat" variables
    
new j;
    for ( 
0MAX_RACESj++ )
    {
        
g_bGivenLevel10[id][j]    = false;
    }

    
CS_GetIconid );
    
    return;
}

public 
client_disconnectid )
{
    if ( !
WC3_Check() )
    {
        return;
    }

    
// Update the user's timestamps for each race if we're saving XP
    
DB_UpdateTimestampid );

    
// Remove the money task when a user disconnects
    
if ( g_MOD == GAME_DOD )
    {
        
task_existsTASK_MONEYLOOP id ) ? remove_taskTASK_MONEYLOOP id ) : 0;
    }

    
p_data[id][P_SPECMODE]            = 0;
    
p_data_b[id][PB_ISBURNING]        = false;
    
p_data_b[id][PB_DIEDLASTROUND]    = false;
    
p_data_b[id][PB_JUSTJOINED]        = false;
    
p_data_b[id][PB_ISCONNECTED]    = false;
    
bIgnoreArmorSet[id]                = false;
    
    
// Reset xp assist
    
for ( new 0MAXPLAYERSi++ )
    {
        
g_iDamageDealt[id][i] = 0;
    }

    
// Save the user's XP if we have XP to save
    
if ( get_pcvar_numCVAR_wc3_save_xp ) && !is_user_bot(id) && p_data[id][P_RACE] && p_data[id][P_XP] )
    {
        
DB_SaveXPidtrue );
    }

    if ( 
get_pcvar_numCVAR_wc3_psychostats ) )
    {
        static 
szWeapon[64];

        static 
szTeam[16], szName[32], szAuthid[32];
        new 
iWeapiUserid get_user_useridid );

        if ( 
is_user_connected(id) )
        {
            
get_user_teamidszTeam15 );
        }
        
get_user_nameidszName31 );
        
get_user_authididszAuthid31 );

        for ( 
iWeap CSW_WAR3_MINiWeap <=CSW_WAR3_MAXiWeap++ )
        {
            
formatszWeapon63"" );

            switch( 
iWeap )
            {
                case 
CSW_LIGHTNING:     LANG_GetSkillNameULTIMATE_CHAINLIGHTNING    LANG_SERVER,    szWeapon    6320 );
                case 
CSW_SUICIDE:        LANG_GetSkillNameULTIMATE_SUICIDE            LANG_SERVER,    szWeapon    6321 );
                case 
CSW_IMMOLATE:        LANG_GetSkillNameULTIMATE_IMMOLATE        LANG_SERVER,    szWeapon    6322 );
                case 
CSW_LOCUSTS:        LANG_GetSkillNameULTIMATE_LOCUSTSWARM        LANG_SERVER,    szWeapon    6323 );
                case 
CSW_SERPENTWARD:   LANG_GetSkillNameSKILL_SERPENTWARD        LANG_SERVER,    szWeapon    6324 );
                case 
CSW_SHADOW:        LANG_GetSkillNameSKILL_SHADOWSTRIKE        LANG_SERVER,    szWeapon    6325 );
                case 
CSW_THORNS:        LANG_GetSkillNameSKILL_THORNS                LANG_SERVER,    szWeapon    6326 );
                case 
CSW_CARAPACE:        LANG_GetSkillNameSKILL_SPIKEDCARAPACE        LANG_SERVER,    szWeapon    6327 );
                case 
CSW_CARRION:        LANG_GetSkillNameSKILL_CARRIONBEETLES        LANG_SERVER,    szWeapon    6328 );
                case 
CSW_ORB:            LANG_GetSkillNamePASS_ORB                    LANG_SERVER,    szWeapon    6329 );
                case 
CSW_CONCOCTION:    LANG_GetSkillNamePASS_UNSTABLECONCOCTION    LANG_SERVER,    szWeapon    6330 );
            }
            
            
replaceszWeapon63" ""_" );

            new 
WEAPON iWeap CSW_WAR3_MIN;
            
            if ( 
iStatsShots[id][WEAPON] || iStatsHits[id][WEAPON] || iStatsKills[id][WEAPON] ||  iStatsHS[id][WEAPON] || iStatsTKS[id][WEAPON] || iStatsDamage[id][WEAPON] || iStatsDeaths[id][WEAPON] || iStatsHead[id][WEAPON] || iStatsChest[id][WEAPON] || iStatsStomach[id][WEAPON] || iStatsLeftArm[id][WEAPON] || iStatsRightArm[id][WEAPON] || iStatsLeftLeg[id][WEAPON] || iStatsRightLeg[id][WEAPON] )
            {

                
// Counter-Strike/Condition Zero log format is different than the DOD
                
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
                {
                    
log_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats^" (weapon ^"%s^") (shots ^"%d^") (hits ^"%d^") (kills ^"%d^") (headshots ^"%d^") (tks ^"%d^") (damage ^"%d^") (deaths ^"%d^")"szNameiUseridszAuthidszTeamszWeaponiStatsShots[id][WEAPON], iStatsHits[id][WEAPON], iStatsKills[id][WEAPON], iStatsHS[id][WEAPON], iStatsTKS[id][WEAPON], iStatsDamage[id][WEAPON], iStatsDeaths[id][WEAPON] );
                }

                
// Day of Defeat log format
                
else if ( g_MOD == GAME_DOD )
                {
                    
log_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats^" (weapon ^"%s^") (shots ^"%d^") (hits ^"%d^") (kills ^"%d^") (headshots ^"%d^") (tks ^"%d^") (damage ^"%d^") (deaths ^"%d^") (score ^"%d^")"szNameiUseridszAuthidszTeamszWeaponiStatsShots[id][WEAPON], iStatsHits[id][WEAPON], iStatsKills[id][WEAPON], iStatsHS[id][WEAPON], iStatsTKS[id][WEAPON], iStatsDamage[id][WEAPON], iStatsDeaths[id][WEAPON], );
                }
                
                
log_message("^"%s<%d><%s><%s>^" triggered ^"weaponstats2^" (weapon ^"%s^") (head ^"%d^") (chest ^"%d^") (stomach ^"%d^") (leftarm ^"%d^") (rightarm ^"%d^") (leftleg ^"%d^") (rightleg ^"%d^")"szNameiUseridszAuthidszTeamszWeaponiStatsHead[id][WEAPON], iStatsChest[id][WEAPON], iStatsStomach[id][WEAPON], iStatsLeftArm[id][WEAPON], iStatsRightArm[id][WEAPON], iStatsLeftLeg[id][WEAPON], iStatsRightLeg[id][WEAPON] );
            
                
iStatsShots[id][WEAPON]        = 0;
                
iStatsHits[id][WEAPON]        = 0;
                
iStatsKills[id][WEAPON]        = 0;
                
iStatsHS[id][WEAPON]        = 0;
                
iStatsTKS[id][WEAPON]        = 0;
                
iStatsDamage[id][WEAPON]    = 0;
                
iStatsDeaths[id][WEAPON]    = 0;
                
iStatsHead[id][WEAPON]        = 0;
                
iStatsChest[id][WEAPON]        = 0;
                
iStatsStomach[id][WEAPON]    = 0;
                
iStatsLeftArm[id][WEAPON]    = 0;
                
iStatsRightArm[id][WEAPON]    = 0;
                
iStatsLeftLeg[id][WEAPON]    = 0;
                
iStatsRightLeg[id][WEAPON]    = 0;
            }
        }
    }
}

public 
client_PreThinkid )
{
    if ( !
WC3_Check() )
    {
        return;
    }

    if ( 
p_data_b[id][PB_ISCONNECTED] )
    {
        if ( 
is_user_aliveid ) )
        {
            
            
// Counter-Strike or Condition Zero
            
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
            {

                
// This is used so we can't hear the undead's footsteps at level 3
                
if ( SM_GetSkillLevelidSKILL_UNHOLYAURA ) > && !p_data_b[id][PB_STUNNED] && !p_data_b[id][PB_SLOWED] )
                {
                    new 
Float:vel[3];
                    
entity_get_vectoridEV_VEC_velocityvel );

                    
// When this is true, the user is walking...  lets hope :P
                    
if ( vector_lengthvel ) < 180.0 )
                    {
                        
entity_set_intidEV_INT_flTimeStepSound999 );
                    }

                    
// Otherwise if we just set it on the previous tick we need to set it back
                    
else if ( entity_get_int(idEV_INT_flTimeStepSound) > 500 )
                    {
                        
entity_set_intidEV_INT_flTimeStepSound200 );
                    }
                }
            }

            
// Day of Defeat
            
else if ( g_MOD == GAME_DOD )
            {

                
// Set the user's speed
                
SHARED_SetSpeedid );
                
                static 
iSkillLevel;
                
iSkillLevel SM_GetSkillLevelidSKILL_UNHOLYAURA );

                
// Give the user more stamina
                
if ( iSkillLevel )
                {
                    if ( 
entity_get_floatidEV_FL_fuser4 ) < p_unholy_dod[iSkillLevel-1] )
                    {
                        
entity_set_floatidEV_FL_fuser4p_unholy_dod[iSkillLevel-1] );
                    }

                }

                
// Give the user more stamina
                
if ( ITEM_HasidITEM_BOOTS ) > ITEM_NONE && entity_get_floatidEV_FL_fuser4 ) < DOD_BOOT_SPEED )
                {
                    
entity_set_floatidEV_FL_fuser4DOD_BOOT_SPEED );
                }
            }

            
// Amulet of the Cat
            
if ( ITEM_HasidITEM_AMULET ) > ITEM_NONE )
            {
                
entity_set_intidEV_INT_flTimeStepSound999 );
            }
        }
        
        
// User is dead
        
else
        {

            
// Check to see if spectated player has changed
            
new iTarget entity_get_intidEV_INT_iuser2 );
            
            new 
Float:fTime halflife_time();

            
// Then we are looking at a new player or the last hud message has disappeared
            
if ( g_iSpectatingID[id] != iTarget || g_fLastSpecDisplay[id] <= fTime )
            {

                
// We have a valid target!!
                
if ( SHARED_ValidPlayeriTarget ) && iTarget != id )
                {
                    
WC3_ShowSpecInfoidiTarget );

                    
g_fLastSpecDisplay[id] = fTime SPEC_HOLDTIME;
                }

                
g_iSpectatingID[id] = iTarget;
            }
        }
    }

    return;
}

public 
plugin_natives()
{
    
set_module_filter"module_filter" );
    
set_native_filter"native_filter" );
    
set_error_filter"error_filter" );
}

public 
error_filtererror_codebool:debuggingmessage[] ) 
{
    new 
szBuffer[256];
    
dbg_fmt_errorszBuffer255 );

    
log_amx"[ERROR] '%s' '%d' '%d' '%s'"messageerror_codedebuggingszBuffer );

    
//L 12/27/2006 - 16:48:08: [war3ft.amxx] [ERROR] '[CSTRIKE] Invalid player 5' '10' '1' 'Run time error 10: native error (native "cs_set_user_money")'

    // We want to ignore invalid player messages that are generated by cstrike! - they're annoying + don't actually matter all that much...
    /*if ( error_code == AMX_ERR_NATIVE )
    {
        if ( containi( message, "" ) )
        {
        }
    }*/
}

public 
module_filter( const module[] )
{
    
WC3_DetermineGame();

    
// We don't need the cstrike module when we're DOD
    
if ( g_MOD == GAME_DOD && equalmodule"cstrike" ) )
    {
        return 
PLUGIN_HANDLED;
    }

    
// And we don't need any dod modules when we're in CS/CZ!
    
else if ( ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO ) && equalmodule"dodfun" ) )
    {
        return 
PLUGIN_HANDLED;
    }

    
// We don't need to display a message, we'll display it later if we need to (when the DB is set up if XP Saving is on)
    
else if ( equalmodule"dbi" ) || equalmodule"sqlx" ) )
    {
        return 
PLUGIN_HANDLED;
    }

    
// Dammit plugin can't load now :/ - technically we should never get here unless the module doesn't exist in the modules folder
    
else
    {
        
WC3_Logtrue"Please enable the '%s' module in your modules.ini file"module );

        return 
PLUGIN_CONTINUE;
    }

    return 
PLUGIN_HANDLED;
}

public 
native_filter( const name[], indextrap )
{
    if ( !
trap )
    {
        return 
PLUGIN_HANDLED;
    }

    return 
PLUGIN_CONTINUE;

another thing, if your cvar wc3_query_client 1, if any player joins with cl_minmodels 1 he is kicked!

Last edited by tarsisd2; 06-20-2018 at 03:04.
tarsisd2 is offline
M3h1gh
Junior Member
Join Date: May 2018
Old 06-20-2018 , 03:44   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #18

Thank you verry much 4 all your help ,yeah its forbidden to play with minimodels , if they get cought they get banned. (only Steam players can use it , the nonsteam players can't join.)

I know I've got a lot to learn, I know that it is much easier and unstressfull to start small.
Its not imposibile , just harder . I have to make do with what I got.

Thanks again. I will try now. I will write again if the problem was solved.
M3h1gh is offline
M3h1gh
Junior Member
Join Date: May 2018
Old 06-20-2018 , 04:20   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #19

[QUOTE=tarsisd2;2598122]this should be your sma file, if you want to work with complex plugins, learn the basic stuff first!

What would you recomend to start with ? Because i find it intresting and complicated. (it keeps me going ) ----

I just saw this sma config is older.
Yours:
ew const WC3NAME[] = "Warcraft 3 Frozen Throne";
new const WC3AUTHOR[] = "Geesu, Avanderik & YamiKaitou";
new const WC3VERSION[] = "3.0 RC13";
new const WC3DATE[] = __DATE__;

Mine:
Warcraft 3 Frozen RC15 2018 WISHEXEC, Geesu,

Is this going to be a problem ? If yes , can it cause more problems than it fixes ?
If something goes wrong and the SV will crash , what would be the best way to fix it fast? Delete file ?
Should I save some plugins ?

Thanks .

Last edited by M3h1gh; 06-20-2018 at 04:25.
M3h1gh is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 06-20-2018 , 08:26   Re: "war3ft.amxx" (linie 565) error
Reply With Quote #20

i'm not very familiar with this mod, but the last one i could find with source code it's Warcraft 3 Frozen RC14.
Warcraft 3 Frozen RC15 seems to be for sale only, so you have to ask the author to fix those errors, i found him easily on the internet, i think you can too, i found newer versions of this mod, 5.0 but all links are dead, search a bit, ask people in other foruns, you might get it!
tarsisd2 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 18:18.


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