AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [Request] Scripting help won't complie (https://forums.alliedmods.net/showthread.php?t=319742)

eNNkds 11-17-2019 08:21

[Request] Scripting help won't complie
 
Code:

//// bb65.sma
Complier\addons\amxmodx\scripting\bb65.sma(812) : warning 204: symbol is assigned a value that is never used: "szGoal"
Complier\addons\amxmodx\scripting\bb65.sma(1890) : error 017: undefined symbol "GREEN"
Complier\addons\amxmodx\scripting\bb65.sma(1890) : warning 215: expression has no effect
Complier\addons\amxmodx\scripting\bb65.sma(1890) : warning 215: expression has no effect
Complier\addons\amxmodx\scripting\bb65.sma(1890) : error 001: expected token: ";", but found ")"
Complier\addons\amxmodx\scripting\bb65.sma(1890) : error 029: invalid expression, assumed zero
Complier\addons\amxmodx\scripting\bb65.sma(1890) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file compiled\bb65.amx (compile failed).

812 line
PHP Code:

public ev_Health(taskid)
{
    if (
taskid>g_iMaxPlayers)
        
taskid-=TASK_HEALTH
        
    
if (is_user_alive(taskid))
    {
        new 
szGoal[32]
        
//if (is_credits_active())
        #if defined BB_CREDITS
            
format(szGoal31"^n%L: %d"LANG_SERVER"HUD_GOAL"credits_get_user_goal(taskid))
        
#endif
        
        
set_hudmessage(255255255, -1.00.9012.012.00.10.24);
        if (
g_isZombie[taskid])
        {
            static 
szCache1[32]
            
ArrayGetString(g_zclass_nameg_iZombieClass[taskid], szCache1charsmax(szCache1))
        
            
//show_hudmessage(taskid, "%L: %d^n%L: %s%s", LANG_SERVER, "HUD_HEALTH", pev(taskid, pev_health), LANG_SERVER, "HUD_CLASS", szCache1, szGoal);
        
}
        else
        {
            
//show_hudmessage(taskid, "%L: %d%s", LANG_SERVER, "HUD_HEALTH", pev(taskid, pev_health), szGoal);
        
}
        
        
set_task(11.9"ev_Health"taskid+TASK_HEALTH);
    }


1890 Line
PHP Code:

    //Checked after object is successfully grabbed
    
if (!g_boolCanBuild && (access(idFLAGS_BUILD) || access(idFLAGS_OVERRIDE)))
    {
        new 
adminauthid[32],adminname[32]
        
get_user_authid (id,adminauthid,31)
        
get_user_name(id,adminname,31)
        
ColorChat0TEAM_COLOR"^x04^x01 Admin^x04 [%s]^x01 moves the blocks^x04"adminname)
    }
    
    
client_cmd(id"spk %s"GRAB_START);
    
cmdLockBlock(id)    
    
ExecuteForward(g_fwGrabEnt_Postg_fwDummyResultident);
    
    return 
PLUGIN_HANDLED



ZaX 11-17-2019 12:05

Re: [Request] Scripting help won't complie
 
It says
Code:

Complier\addons\amxmodx\scripting\bb65.sma(1890) : error 017: undefined symbol "GREEN"
While you have
Code:

ColorChat( 0, TEAM_COLOR, "^x04^x01 Admin^x04 [%s]^x01 moves the blocks^x04", adminname)
Check your colorchat include file and change TEAM_COLOR

As for
Code:

Complier\addons\amxmodx\scripting\bb65.sma(812) : warning 204: symbol is assigned a value that is never used: "szGoal"
Its just a warning, youre not using "szGoal" because BB_CREDITS is not defined.


All times are GMT -4. The time now is 23:47.

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