Fatal error 183 cannot read from file emitsoundany

[Archive] sm_hosties.sp can't compile SM_Hosties

View Full Version : sm_hosties.sp can’t compile


IAmReydan

09-17-2017, 19:31

I have followed the guide from this link (https://forums.alliedmods.net/showthread.php?t=276863) to compile my sm_hosties.sp file.

However it doesn’t work.

I have tried with both versions.

Master Version gives me following error:
fatal error 182: cannot read from file: «hosties»

Beta Version gives me following error:
fatal error 182: cannot read from file: «emitsoundany»

I have downloaded the included files: emitsoundany.inc, SteamWorks.inc and sourcebans.inc but it still doesnt work.

I am using Sourcemods own website to compile (https://www.sourcemod.net/compiler.php). Since I can’t find the the batch compiler.exe in any files or on any website available for download.

Can someone compile it for me and upload the .smx file so my server will finally work? I have tried everything now.


Use this compiler = https://spider.limetech.io/

And the «compiler.exe» is found in the windows version of sourcemod in the following directory ->
addonssourcemodscripting.

It’s normal that you do not come to compile it because you can not put the includes with the sourcemod web.


IAmReydan

09-18-2017, 10:15

Use this compiler = https://spider.limetech.io/

And the «compiler.exe» is found in the windows version of sourcemod in the following directory ->
addonssourcemodscripting.

It’s normal that you do not come to compile it because you can not put the includes with the sourcemod web.

Now I get the following error: plugin.sp(106) : fatal error 183: cannot read from file: «hosties/noblock.sp»

https://gyazo.com/d95b0b81f3568e70f8dc3c0b2bf63e10


Oh Use compiler included with sourcemod.

I forgot that the plugin is in several .sp


IAmReydan

09-18-2017, 10:38

Oh Use compiler included with sourcemod.

I forgot that the plugin is in several .sp

Seems like its working now. Thank you so much!


Seems like its working now. Thank you so much!

:bacon!::bacon!:


vBulletin® v3.8.7, Copyright ©2000-2023, vBulletin Solutions, Inc.

#1

Person256

    Новичок

  • Пользователь
  • Pip

  • 3 сообщений

Отправлено 20 Сентябрь 2020 — 20:48

Добрый вечер, хочу спросить может знает кто из-за чего может данная ошибка при компиляция файла?
Сразу говорю, в папке инклудов она есть.

При компиляции:
C:UsersUserDesktop1compilscriptingmoe.sp(5) : fatal error 183: cannot read from file: «secure»

В принципе что сказать, раньше вроде как компилировал он без ошибок, и ничего подобного не выдавал.
Сейчас решил мне рассказать что не может прочитать данный файл.

 

Сообщение отредактировал Person256: 20 Сентябрь 2020 — 20:53

  • Наверх


#2


Shvydkov

Отправлено 20 Сентябрь 2020 — 21:55

Добрый вечер, хочу спросить может знает кто из-за чего может данная ошибка при компиляция файла?
Сразу говорю, в папке инклудов она есть.

При компиляции:
C:UsersUserDesktop1compilscriptingmoe.sp(5) : fatal error 183: cannot read from file: «secure»

В принципе что сказать, раньше вроде как компилировал он без ошибок, и ничего подобного не выдавал.
Сейчас решил мне рассказать что не может прочитать данный файл.

 

для использования угловых скобок файл должен находиться в папке includes + иметь расширение .inc. если эти условия не соблюдаются, то используйте полный путь к файлу, относительно компилятора, в кавычках. пример:

#include "includes/secure.sp"

Сообщение отредактировал Shvydkov: 20 Сентябрь 2020 — 21:55

  • Наверх


#include <amxmodx>
#include <reapi>

#define WARMUPTIME     60    // Время вармапа
#define NUM_RR        1    // Кол-во рестартов
#define LATENCY        1    // Задержка между рестартами
#define DHUD_MESSAGE        // Показывать в dhud. Закомментируйте, чтобы был hud
#define GIVE_SHIELD    0    // 0 — выключить; 1 — Щит + deagle; 2 — щит + нож; 3 — щит и с диглом и ножом
#define STOP_PLUGS        // Отключать плагины на время вармапа
#define DM_MODE            // Бесконечный респавн на время вармапа
#define ThFiveHP_ON_KNIFE    // Выдает 35HP игрокам, если оружие — НОЖ

#if defined STOP_PLUGS
    new g_arPlugins[][] =    // Указывать название файлов, например test.amxx
    {
        «reapi_awp_limitter_182.amxx»,
        «amxx_vip_gold.amxx»,
        «weaponrest.amxx»,
        «crux_ansata.amxx»

            }
#endif
new g_szWeapon[32];
new g_iWp;
new HookChain:fwd_NewRound,
#if defined DM_MODE
    HookChain:fwd_Killed,
#endif
    HookChain:fwd_Spawn;
#if defined DHUD_MESSAGE
    #if AMXX_VERSION_NUM < 183
        #include <dhudmessage>
    #endif
#else
    new g_iHudSync;
#endif

public plugin_init()
{
    register_plugin(«Random Weapons WarmUP», «2.5.untested», «neugomon»);

    RegisterHookChain(RG_RoundEnd, «fwdRoundEnd», true);
    DisableHookChain((fwd_NewRound = RegisterHookChain(RG_CSGameRules_CheckMapConditions, «CSGameRules», true)));
    DisableHookChain((fwd_Spawn    = RegisterHookChain(RG_CBasePlayer_Spawn, «CBasePlayer_Spawn_Post», true)));
#if defined DM_MODE    
    DisableHookChain((fwd_Killed   = RegisterHookChain(RG_CBasePlayer_Killed, «CBasePlayer_Killed_Post», true)));

        register_clcmd(«joinclass», «clCmdJoinClass»);
    register_clcmd(«menuselect»,»clCmdJoinClass»);
#endif
#if !defined DHUD_MESSAGE
    g_iHudSync    = CreateHudSyncObj();
#endif
    state warmupOff;
}

public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay) <warmupOff>
    if(event == ROUND_GAME_COMMENCE)
        EnableHookChain(fwd_NewRound);

        public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay) <warmupOn>
    return;

public CSGameRules ()
{
    state warmupOn;

        set_member_game(m_bMapHasBuyZone, true);
    BuyZone_ToogleSolid(SOLID_NOT);

        DisableHookChain(fwd_NewRound);
    EnableHookChain(fwd_Spawn);
#if defined DM_MODE    
    EnableHookChain(fwd_Killed);
#endif    
#if defined STOP_PLUGS    
    PluginController(1);
#endif    
    switch((g_iWp = random(5)))
    {
        case 0: formatex(g_szWeapon, charsmax(g_szWeapon), «TMP»);
        case 1: formatex(g_szWeapon, charsmax(g_szWeapon), «UMP45»);
        case 2: formatex(g_szWeapon, charsmax(g_szWeapon), «Scout»);
        case 3: formatex(g_szWeapon, charsmax(g_szWeapon), «Grenade»);
        case 4: formatex(g_szWeapon, charsmax(g_szWeapon), «Knife»);
    }

            set_task(1.0, «ShowTimer», .flags = «a», .repeat = WARMUPTIME);
}
#if defined DM_MODE
public clCmdJoinClass(id) <warmupOff>
    return;

    public clCmdJoinClass(id) <warmupOn>
    if(get_member(id, m_iMenu) == Menu_ChooseAppearance)
        set_task(0.5, «SpawnPlayer», id);
#endif
public CBasePlayer_Spawn_Post(const id)
{
    if(!is_user_alive(id))
        return;

            rg_remove_all_items(id);

        switch(g_iWp)
    {
        case 0:
        {
            rg_give_item(id, «weapon_tmp»);
            rg_set_user_bpammo(id, WEAPON_TMP, 300);
        }
        case 1:
        {
            rg_give_item(id, «weapon_ump45»);
            rg_set_user_bpammo(id, WEAPON_UMP45, 300);
        }
        case 2:
        {
            rg_give_item(id, «weapon_scout»);
            rg_set_user_bpammo(id, WEAPON_SCOUT, 300);
        }
        case 3:
        {
            rg_give_item(id, «weapon_hegrenade»);
            rg_set_user_bpammo(id, WEAPON_HEGRENADE, 512);
        }
        case 4:
        {
        #if GIVE_SHIELD == 2 || GIVE_SHIELD == 3
            rg_give_item(id, «weapon_shield»);
        #endif
            rg_give_item(id, «weapon_knife»);
        #if defined ThFiveHP_ON_KNIFE
            set_entvar(id, var_health, 35.0);
        #endif    
        }    
    }    
}
#if defined DM_MODE
public CBasePlayer_Killed_Post(pVictim)
    set_task(1.0, «SpawnPlayer», pVictim);
#endif    
public ShowTimer()
{
    static timer = -1;
    if(timer == -1) timer = WARMUPTIME;

        switch(—timer)
    {
        case 0:
        {
            state warmupOff;

                        BuyZone_ToogleSolid(SOLID_TRIGGER);
            DisableHookChain(fwd_Spawn);
        #if defined DM_MODE    
            DisableHookChain(fwd_Killed);
        #endif
        #if defined STOP_PLUGS    
            PluginController(0);
        #endif    
        #if NUM_RR > 1        
            set_task(LATENCY, «SV_Restart», .flags = «a», .repeat = NUM_RR);
        #else
            SV_Restart();
        #endif
            timer = -1;
        }
        default:
        {
        #if defined DHUD_MESSAGE
            set_dhudmessage(.red = 135, .green = 206, .blue = 235, .x = -1.0, .y = 0.08, .holdtime = 0.9);
            show_dhudmessage(0, «Разминка на %s!^nРестарт через %d сек», g_szWeapon, timer);
        #else    
            set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.9, .holdtime = 0.9, .channel = -1);
            ShowSyncHudMsg(0, g_iHudSync, «Разминка на %s!^nРестарт через %d сек», g_szWeapon, timer);
        #endif    
        }
    }
}

public SV_Restart()
    set_cvar_num(«sv_restart», 1);
#if defined DM_MODE    
public SpawnPlayer(id)
{
    if(is_user_alive(id))
        return;

            switch(get_member(id, m_iTeam))
    {
        case 1, 2: rg_round_respawn(id);
    }
}
#endif
stock PluginController(stop)
{
    for(new i; i < sizeof g_arPlugins; i++)
    {
        if(stop)pause  («ac», g_arPlugins[i]);
        else    unpause(«ac», g_arPlugins[i]);
    }    
}

stock BuyZone_ToogleSolid(const solid)
{
    new entityIndex = 0;
    while ((entityIndex = rg_find_ent_by_class(entityIndex, «func_buyzone»)))
        set_entvar(entityIndex, var_solid, solid);
}

  Posts   [error][ 183] : Cannot create a file when that file already exists
(Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : S.T.A.L.K.E.R. Anomaly : Forum : Support : [error][ 183] : Cannot create a file when that file already exists) Locked Thread Options Jun 10 2018

Anchor

As the title says, crashed the game. No fatal error log, only this message in error log after stack trace.

Jun 10 2018

Anchor

As always the same questions from me :)

Is it reproducible? Do you have a save that crashes?

I can’t really do anything without more information. It can literally be anything, the game, the mods, the OS, the drivers, or the computer hardware.

Jun 10 2018

Anchor

This can happen when there is too much saves, try not spamming quick save and/or reduce the number of autosaves (or raise delay) in game option. It’s an old bug present since SoC. Its less frequent now since the save function give different names to savefiles but it can still happen time to time, regardless of game/mod used;
to me, looks like the savefile is «locked» and the game is unable to write in it, but i read here
Metacognix.com
it’s said :

Same error twice in a row Symptom [error][ 183] : Cannot create a file when that file already exists.

Cause This might happen when there are two consecutive exceptions (errors) at the same time. The severity of the error is a function of the previous error. Treatment Determine the first error, and treat that.

Maybe full log can explain more

Jun 10 2018

Anchor

Zoust, that might be it, i’ve made two consecutive quicksaves in short time, and the crash happened. Haven’t got this one in misery or other stalker games, so i assumed it was CoC.Good to know its just inherent bug of the engine and not anomaly fault.

Edited by: PassiveAggressive

Jun 10 2018

Anchor

PassiveAggressive wrote:

i’ve made two consecutive quicksaves in short time, and the crash happened.

for me, there is no need to search further, just avoid double quicksaving in a row and you should be ok

Posts: 252
Threads: 24
Joined: Jul 2013

Reputation:

0

pawn Код:

fatal error 100: cannot read from file: "a_mysql"

Its placed in pawno>include
And this is what i found in it

PHP код:



/**

*

*            MySQL Native Functions

*    More information about the function usage at mysql.com

*

**/

#if defined mysql_included

    #endinput

#endif

#define mysql_included

#include <a_samp>

#include <a_sampmysql>

//Definitions

#define mysql_fetch_row(%1) mysql_fetch_row_format(%1,"|")

#define mysql_get_field(%1,%2) mysql_fetch_field_row(%2,%1)

//Native functions

native mysql_affected_rows(connectionHandle 1);

native mysql_close(connectionHandle 1);

native mysql_connect(const host[],const user[],const database[],const password[]);

native mysql_debug(enable 1);

native mysql_errno(connectionHandle 1);

native mysql_fetch_int(connectionHandle 1);

native mysql_fetch_field(number,dest[],connectionHandle 1);

native mysql_fetch_field_row(string[],const fieldname[],connectionHandle 1);

native mysql_fetch_float(&Float:result,connectionHandle 1);

native mysql_fetch_row_format(string[],const delimiter[] = "|",connectionHandle 1);

native mysql_field_count(connectionHandle 1);

native mysql_free_result(connectionHandle 1);

native mysql_get_charset(destination[],connectionHandle 1);

native mysql_insert_id(connectionHandle 1);

native mysql_num_rows(connectionHandle 1);

native mysql_num_fields(connectionHandle 1);

native mysql_ping(connectionHandle 1);

native mysql_query(query[],resultid = (-1),extraid = (-1),connectionHandle 1);

native mysql_real_escape_string(const source[],destination[],connectionHandle 1);

native mysql_reconnect(connectionHandle 1);

native mysql_reload(connectionHandle 1) = mysql_reconnect;

native mysql_set_charset(charset[],connectionHandle 1);

native mysql_stat(const destination[],connectionHandle 1);

native mysql_store_result(connectionHandle 1);

native mysql_warning_count(connectionHandle 1);

//Callback

forward OnQueryFinish(query[], resultidextraidconnectionHandle); 




26.09.2013, 14:55

(

Последний раз редактировалось Patrick; 26.09.2013 в 18:14.

)

On your main-script, you forgot to add

Posts: 252
Threads: 24
Joined: Jul 2013

Reputation:

0

Quote:

Originally Posted by pds2012
Посмотреть сообщение

On your main-script, you forgot to add

First you forgot to put > after a_mysql
Second, its already there!!!

Sorry, sometimes people make mistake or miss-type, can you show us the whole error, for example this kind of error

pawn Код:

C:UsersPCNameLocationFoldernamegamemodesScriptName.pwn(9) : error 038: extra characters on line

not just the error:

pawn Код:

fatal error 100: cannot read from file: "a_mysql"

make you you include it like that, and you have the right include name on your include folder

pawn Код:

pawno/include/a_mysql.inc

Posts: 252
Threads: 24
Joined: Jul 2013

Reputation:

0

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fatal error 183 cannot read from file dhooks
  • Fatal error 183 cannot read from file colors
  • Fatal error 120 cannot read from file sourcemod
  • Fatal error 113 occurred while download
  • Fatal error 111 user error streamer must be included before pickfix

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии