Raised This Month: $51 Target: $400
 12% 

Compiling errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 03-19-2023 , 07:41   Compiling errors
Reply With Quote #1

Im getting an error, i did the locking base for 20 seconds of end round for VIP but getting this error tried to find an const/include didn't find it

//// basebuilder54.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\czero\addons\amxmodx\scripting\basebuild er54.sma(1025) : error 017: undefined symbol "get_gamerules_round_end_time"

PHP Code:
public cmdLockBlock(id)
{
    new 
entbodypart
    get_user_aiming 
(id,ent,bodypart)
    
    new 
tname[7], cname[10];
    
entity_get_string(entEV_SZ_targetnametname6);
    
entity_get_string(entEV_SZ_classnamecname9);
    
    
// Only allow VIPs to lock base during last 20 seconds of the round
    
if (get_gamerules_round_end_time() - get_gametime() <= 20)
    {
        if (!
access(idADMIN_VOTE))
        {
            
client_print(idprint_chat"Only VIPs can lock the base during the last 20 seconds of the round.");
            return 
PLUGIN_HANDLED;
        }
    }
    
// Admins can lock the base any time
    
else if (!access(idLOCK_BLOCKS))
    {
        return 
PLUGIN_HANDLED;
    }
    
    if (!
ent || !is_valid_ent(ent) || is_user_alive(ent) || ent == g_iEntBarrier || !equal(cname"func_wall") || equal(tname"ignore")) return PLUGIN_HANDLED
    
    
if (!IsBlockLocked(ent) && !g_MovingEnt[ent])
    {
        
LockBlock(ent)
        
DispatchKeyValue(ent"rendermode""1");
        
DispatchKeyValue(ent"rendercolor""125.0 0.0 0.0");
        
        
g_OwnedEnts[g_EntOwner[ent]]--
        
g_EntOwner[ent] = 0
    
}
    else if (
IsBlockLocked(ent))
    {
        
UnlockBlock(ent)
        
DispatchKeyValue(ent"rendermode""0");
    }
    return 
PLUGIN_HANDLED

__________________
CS:CZ > CS 1.6

Last edited by Ace67; 03-19-2023 at 07:58.
Ace67 is offline
 



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 08:55.


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