[FAKEMETA] Invalid entity
Best Answer Misiaczek ;c 03.06.2015 23:28
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #define PLUGIN "Spec Switch" #define VERSION "0.1.3" #define AUTHOR "many" //& MisieQ #define MAX 32 new CsTeams:zTeam[ MAX + 1 ], zDeath[ MAX + 1 ], bool:type_spec[ MAX + 1 ] = false; new gCvar; new const g_szCmd[ ][ ]={ "say /spec", "say spec", "say_team /spec", "say_team spec" } new const g_szCmd2[ ][ ]={ "say /wroc", "say wroc", "say_team /wroc", "say_team wroc" } public plugin_init( ) { register_plugin( PLUGIN, VERSION, AUTHOR ); gCvar = register_cvar( "amx_specmode", "0" ); for( new i = 0; i < sizeof g_szCmd; i++ ){ register_clcmd( g_szCmd[ i ], "ClCmd_Spec", ADMIN_ALL, "- idzie na specta" ) } for( new i = 0; i < sizeof g_szCmd2; i++ ){ register_clcmd( g_szCmd2[ i ], "ClCmd_Back", ADMIN_ALL, "- wraca do druzyny" ) } } public ClCmd_Spec( id ) { switch( get_pcvar_num( gCvar ) ) { case 0: Spec( id ); case 1: { if( get_user_flags( id ) & ADMIN_KICK ) Spec( id ) else PrintUserNotAdmin( id ) } } } public ClCmd_Back( id ) { if ( type_spec[ id ] && cs_get_user_team( id ) == CS_TEAM_SPECTATOR && zTeam[ id ] != CS_TEAM_SPECTATOR ) Back( id ) else if( get_pcvar_num( gCvar) && !( get_user_flags( id ) & ADMIN_KICK ) ) PrintUserNotAdmin( id ) } public Spec( id ) { zDeath[ id ] = cs_get_user_deaths( id ) if ( cs_get_user_team( id ) == CS_TEAM_SPECTATOR ) return else { type_spec[ id ] = true zTeam[ id ] = cs_get_user_team( id ) cs_set_user_team( id, CS_TEAM_SPECTATOR ) user_silentkill( id ) client_print( id,print_chat,"Wpisz /wroc by powrocic z specta" ) } return } public Back( id ) { cs_set_user_team( id, zTeam[ id ] ) cs_set_user_deaths( id, zDeath[ id ] ) set_task( 0.5,"FirstRespawn",id ) set_task( 0.8,"SecondRespawn",id ) } public FirstRespawn( id ) { if( !is_user_connected( id ) ) return cs_user_spawn( id ) } public SecondRespawn( id ) { if( !is_user_connected( id ) ) return cs_user_spawn( id ) if ( cs_get_user_team( id ) == CS_TEAM_T ){ give_item( id,"weapon_knife" ) give_item( id,"weapon_glock18" ) give_item( id,"ammo_9mm" ) } if ( cs_get_user_team( id ) == CS_TEAM_CT ){ give_item( id,"weapon_knife" ) give_item( id,"weapon_usp" ) give_item( id,"ammo_45acp" ) give_item( id,"ammo_45acp" ) } } PrintUserNotAdmin( id ) client_print( id,print_chat,"Tylko admin moze uzyc komend /spec, /wroc " ) public PrintRule( id ) { if ( is_user_connected( id ) && !is_user_bot( id ) && !is_user_hltv( id ) ) { client_print( id,print_chat,"Wpisz /spec jezeli chcesz przejsc na Specta" ) client_print( id,print_chat,"Wpisz /wroc aby powrocic z Specta" ) } } public client_disconnect( id ) type_spec[ id ] = false public client_connect( id ) type_spec[ id ] = falseGo to the full post
DR HOUSE
27.05.2015
Witam,
Mam zainstalowany mod CSDM wersja 2.1.2 i mam takie błędy:
L 05/26/2015 - 21:14:50: Info (map "cs_assault") (file "addons/amxmodx/logs/error_20150526.log") L 05/26/2015 - 21:14:50: [FAKEMETA] Invalid entity L 05/26/2015 - 21:14:50: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 21:14:50: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 21:14:50: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 21:14:50: [FAKEMETA] Invalid entity L 05/26/2015 - 21:14:50: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 21:14:50: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 21:14:50: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 21:14:50: [FAKEMETA] Invalid entity L 05/26/2015 - 21:14:50: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 21:14:50: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 21:14:50: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 21:14:50: [FAKEMETA] Invalid entity L 05/26/2015 - 21:14:50: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 21:14:50: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 21:14:50: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 22:30:29: Start of error session. L 05/26/2015 - 22:30:29: Info (map "cs_max") (file "addons/amxmodx/logs/error_20150526.log") L 05/26/2015 - 22:30:29: [FAKEMETA] Invalid entity L 05/26/2015 - 22:30:29: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 22:30:29: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 22:30:29: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 22:30:29: [FAKEMETA] Invalid entity L 05/26/2015 - 22:30:29: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 22:30:29: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 22:30:29: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 22:30:29: [FAKEMETA] Invalid entity L 05/26/2015 - 22:30:29: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 22:30:29: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 22:30:29: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90) L 05/26/2015 - 22:30:29: [FAKEMETA] Invalid entity L 05/26/2015 - 22:30:29: [AMXX] Displaying debug trace (plugin "csdm_misc.amxx") L 05/26/2015 - 22:30:29: [AMXX] Run time error 10: native error (native "pev") L 05/26/2015 - 22:30:29: [AMXX] [0] csdm_misc.sma::OnEntSpawn (line 90)
DR HOUSE
01.06.2015
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team csdm_misc.sma(1) : error 010: invalid function or declaration csdm_misc.sma(259) : error 001: expected token: "}", but found "-end of file-" 2 Errors. Could not locate output file csdm_misc.amxx (compile failed).
DR HOUSE
01.06.2015
Okej, teraz się da pobrac, wrzucam na serwer i dam znac czy dziala bo nie na wszystkich mapach sypie bledami
dzięki
DR HOUSE
03.06.2015
Okej, teraz działa, dzięki. Plusik dodany
Mam za to problem z innym pluginem, co dziwne wszystko działało przed przeinstalowaniem serwera, teraz co trochę wysypuje się coś innego. Może w tym też mógłbyś mi pomóc?
L 06/02/2015 - 15:27:41: Start of error session. L 06/02/2015 - 15:27:41: Info (map "de_abaddon") (file "addons/amxmodx/logs/error_20150602.log") L 06/02/2015 - 15:27:41: [CSTRIKE] Invalid player 3 L 06/02/2015 - 15:27:41: [AMXX] Run time error 10 (plugin "Spec_Switch.amxx") (native "cs_user_spawn") - debug not enabled! L 06/02/2015 - 15:27:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/02/2015 - 15:27:41: [CSTRIKE] Invalid player 3 L 06/02/2015 - 15:27:41: [AMXX] Run time error 10 (plugin "Spec_Switch.amxx") (native "cs_user_spawn") - debug not enabled! L 06/02/2015 - 15:27:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/02/2015 - 17:46:19: Start of error session. L 06/02/2015 - 17:46:19: Info (map "cs_wiocha") (file "addons/amxmodx/logs/error_20150602.log") L 06/02/2015 - 17:46:19: [CSTRIKE] Invalid player 5 L 06/02/2015 - 17:46:19: [AMXX] Run time error 10 (plugin "Spec_Switch.amxx") (native "cs_user_spawn") - debug not enabled! L 06/02/2015 - 17:46:19: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 06/02/2015 - 17:46:19: [CSTRIKE] Invalid player 5 L 06/02/2015 - 17:46:19: [AMXX] Run time error 10 (plugin "Spec_Switch.amxx") (native "cs_user_spawn") - debug not enabled! L 06/02/2015 - 17:46:19: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Attached Files
DR HOUSE
03.06.2015
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team Spec_Switch.sma(1) : error 010: invalid function or declaration Spec_Switch.sma(102) : error 017: undefined symbol "fa" Spec_Switch.sma(102) : warning 213: tag mismatch 2 Errors. Could not locate output file Spec_Switch.amxx (compile failed).
Rivit
03.06.2015
Mogłeś dopisać na końcu...
Tak to jest jak się pomaga przez telefon
Attached Files
DR HOUSE
03.06.2015
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team Spec_Switch.sma(1) : error 010: invalid function or declaration 1 Error. Could not locate output file Spec_Switch.amxx (compile failed).
teraz dopisałem na koniec klamrę i dalej to samo
Best Answer
Misiaczek ;c
03.06.2015
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> #define PLUGIN "Spec Switch" #define VERSION "0.1.3" #define AUTHOR "many" //& MisieQ #define MAX 32 new CsTeams:zTeam[ MAX + 1 ], zDeath[ MAX + 1 ], bool:type_spec[ MAX + 1 ] = false; new gCvar; new const g_szCmd[ ][ ]={ "say /spec", "say spec", "say_team /spec", "say_team spec" } new const g_szCmd2[ ][ ]={ "say /wroc", "say wroc", "say_team /wroc", "say_team wroc" } public plugin_init( ) { register_plugin( PLUGIN, VERSION, AUTHOR ); gCvar = register_cvar( "amx_specmode", "0" ); for( new i = 0; i < sizeof g_szCmd; i++ ){ register_clcmd( g_szCmd[ i ], "ClCmd_Spec", ADMIN_ALL, "- idzie na specta" ) } for( new i = 0; i < sizeof g_szCmd2; i++ ){ register_clcmd( g_szCmd2[ i ], "ClCmd_Back", ADMIN_ALL, "- wraca do druzyny" ) } } public ClCmd_Spec( id ) { switch( get_pcvar_num( gCvar ) ) { case 0: Spec( id ); case 1: { if( get_user_flags( id ) & ADMIN_KICK ) Spec( id ) else PrintUserNotAdmin( id ) } } } public ClCmd_Back( id ) { if ( type_spec[ id ] && cs_get_user_team( id ) == CS_TEAM_SPECTATOR && zTeam[ id ] != CS_TEAM_SPECTATOR ) Back( id ) else if( get_pcvar_num( gCvar) && !( get_user_flags( id ) & ADMIN_KICK ) ) PrintUserNotAdmin( id ) } public Spec( id ) { zDeath[ id ] = cs_get_user_deaths( id ) if ( cs_get_user_team( id ) == CS_TEAM_SPECTATOR ) return else { type_spec[ id ] = true zTeam[ id ] = cs_get_user_team( id ) cs_set_user_team( id, CS_TEAM_SPECTATOR ) user_silentkill( id ) client_print( id,print_chat,"Wpisz /wroc by powrocic z specta" ) } return } public Back( id ) { cs_set_user_team( id, zTeam[ id ] ) cs_set_user_deaths( id, zDeath[ id ] ) set_task( 0.5,"FirstRespawn",id ) set_task( 0.8,"SecondRespawn",id ) } public FirstRespawn( id ) { if( !is_user_connected( id ) ) return cs_user_spawn( id ) } public SecondRespawn( id ) { if( !is_user_connected( id ) ) return cs_user_spawn( id ) if ( cs_get_user_team( id ) == CS_TEAM_T ){ give_item( id,"weapon_knife" ) give_item( id,"weapon_glock18" ) give_item( id,"ammo_9mm" ) } if ( cs_get_user_team( id ) == CS_TEAM_CT ){ give_item( id,"weapon_knife" ) give_item( id,"weapon_usp" ) give_item( id,"ammo_45acp" ) give_item( id,"ammo_45acp" ) } } PrintUserNotAdmin( id ) client_print( id,print_chat,"Tylko admin moze uzyc komend /spec, /wroc " ) public PrintRule( id ) { if ( is_user_connected( id ) && !is_user_bot( id ) && !is_user_hltv( id ) ) { client_print( id,print_chat,"Wpisz /spec jezeli chcesz przejsc na Specta" ) client_print( id,print_chat,"Wpisz /wroc aby powrocic z Specta" ) } } public client_disconnect( id ) type_spec[ id ] = false public client_connect( id ) type_spec[ id ] = false