Raised This Month: $350 Target: $400
 87%   Almost there!

[Request] Scripting help won't complie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eNNkds
Member
Join Date: Sep 2012
Location: Romania
Old 11-17-2019 , 08:21   [Request] Scripting help won't complie
Reply With Quote #1

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

eNNkds is offline
Send a message via Skype™ to eNNkds
ZaX
Senior Member
Join Date: Jan 2015
Old 11-17-2019 , 12:05   Re: [Request] Scripting help won't complie
Reply With Quote #2

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.

Last edited by ZaX; 11-17-2019 at 12:06.
ZaX is offline
Reply


Thread Tools
Display Modes

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 13:07.


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