AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Could not locate output file (https://forums.alliedmods.net/showthread.php?t=127516)

dustball 05-22-2010 02:49

Could not locate output file
 
I have tried anything I can think of. I have all of the include libraries in the right place. And I put the .sma in C:\Program Files\AMX Mod X\files\base\scripting\amxx_chz.sma. However, I keep getting this error message. Does anyone know why?

Could not locate output file C:\Program Files\AMX Mod X\files\base\scripting\amxx_chz.amx (compile failed).

Seta00 05-22-2010 09:17

Re: Could not locate output file
 
Post the full compiler output.

Bugsy 05-22-2010 09:45

Re: Could not locate output file
 
Its most likely a error in your code. Post your code.

dustball 05-22-2010 13:13

Re: Could not locate output file
 
Here it is, I don't know why its doing this. :|

Edit: I'm not good at pawn, but I think I know whats causing the error. In the output, I have a few "undefined symbols." I'm not sure what they do with the script or if this would even cause it to not compile. If there is something undefined, maybe because I didn't use it or deleted that part of the script, should I just delete the undefined symbols? Would they do anything?

Code:

#define VERSION    "1.3"

#include <amxmodx>
#include <amxmisc>
#include <chr_engine>

#define HEAD_BONE    8

new bool:esp[33]
new bool:aimbot[33]
new bool:speed[33]
new bool:recoil[33]
new speed_pcvar
new esp_on_pcvar
new aimbot_on_pcvar
new speed_on_pcvar
new recoil_on_pcvar

public plugin_init()
{
    register_plugin("Hacks Plugin",VERSION,"Dustball_Edit")
    speed_pcvar = register_cvar("speedhack_speed","500.0")
    esp_on_pcvar = register_cvar("esp_on","1")
    aimbot_on_pcvar = register_cvar("aimbot_on","1")
    speed_on_pcvar = register_cvar("speed_on","1")
    recoil_on_pcvar = register_cvar("recoil_on","1")
    register_clcmd("say_team /aimbot","hack1")
    register_clcmd("say_team /esp","hack2")
    register_clcmd("say_team /speed","hack3")
    register_clcmd("say_team /norecoil","hack4")
    register_forward(FM_PlayerPreThink,"FM_PreThink")
    register_forward(FM_TraceLine, "FM_traceline_hook",1)
}

public client_disconnect(id)
{
    esp[id]=false
    aimbot[id]=false
    speed[id]=false
    recoil[id]=false
}


public FM_traceline_hook(Float:blah1[3],Float:blah2[3],blah3,id)
{
    if(is_user_alive(id) && recoil[id])
    {
        static vec1[3], Float:vec2[3]
        get_user_origin(id,vec1,3)

        vec2[0] = float(vec1[0])
        vec2[1] = float(vec1[1])
        vec2[2] = float(vec1[2])

        set_tr(TR_vecEndPos,vec2)
    }
}

//teame06's function that he shared with me quiet a while ago.
public set_rendering2(index,fx,r,g,b,render,amount)
{
    set_pev(index, pev_renderfx, fx);
    new Float:RenderColor[3];
    RenderColor[0] = float(r);
    RenderColor[1] = float(g);
    RenderColor[2] = float(b);
    set_pev(index, pev_rendercolor, RenderColor);
    set_pev(index, pev_rendermode, render);
    set_pev(index, pev_renderamt, float(amount));
}


drekes 05-22-2010 15:33

Re: Could not locate output file
 
compiles for me, 5 warning though.

I'm pretty sure this is not the full code

fysiks 05-22-2010 20:52

Re: Could not locate output file
 
Quote:

Originally Posted by dustball (Post 1188048)
I'm not good at pawn, but I think I know whats causing the error. In the output, I have a few "undefined symbols." I'm not sure what they do with the script or if this would even cause it to not compile. If there is something undefined, maybe because I didn't use it or deleted that part of the script, should I just delete the undefined symbols? Would they do anything?

You are the only one that will be able to answer that question at this point.

Quote:

Originally Posted by drekes (Post 1188163)
I'm pretty sure this is not the full code

Yeah, some people just don't get it. It gets annoying.


All times are GMT -4. The time now is 03:35.

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