Raised This Month: $32 Target: $400
 8% 

Compiling error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nbanow
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 02-01-2021 , 03:58   Compiling error
Reply With Quote #1

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:
Nbanow is offline
Nbanow
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 02-01-2021 , 04:30   Re: Compiling error
Reply With Quote #2

SOLUTION FOUND.

After 124th research I found alternative. C4 management by ConnorMcLeod.
Nbanow is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-01-2021 , 08:26   Re: Compiling error
Reply With Quote #3

Did you try using a ReAPI plugin without having ReAPI?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 02-01-2021 , 12:38   Re: Compiling error
Reply With Quote #4

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


tarsisd2 is offline
Reply



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 21:54.


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