AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Compiling error (https://forums.alliedmods.net/showthread.php?t=330386)

Nbanow 02-01-2021 03:58

Compiling error
 
This plugin should stop terrorists from planting C4 when being alone in server. Please, help to solve it. Short code of a plugin:

PHP Code:

#include <amxmodx>
#include <reapi>

public plugin_init() {
    
register_plugin("C4_Block""1.0""SNauPeR");
    
RegisterHookChain(RG_CSGameRules_GiveC4"CSGameRules_GiveC4_Pre");
}

public 
CSGameRules_GiveC4_Pre() {
    new 
Players[32], Count;
    
get_players(PlayersCount"ach");
    if(
Count 3) {
        
client_print_color(0print_team_red"C4 is blocked until more players join.");
        return 
HC_SUPERCEDE;
    }
    return 
HC_CONTINUE;


Error message:
https://i.ibb.co/t4cGkJz/bombosfail.png

Nbanow 02-01-2021 04:30

Re: Compiling error
 
SOLUTION FOUND.

After 124th research I found alternative. C4 management by ConnorMcLeod.

OciXCrom 02-01-2021 08:26

Re: Compiling error
 
Did you try using a ReAPI plugin without having ReAPI?

tarsisd2 02-01-2021 12:38

Re: Compiling error
 
i have no errors compiling this, maybe you dont have reapi so it wont work for you


https://i.ibb.co/HXgTPnc/compile.png


All times are GMT -4. The time now is 04:53.

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