View Single Post
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Old 12-08-2017 , 14:01   Re: [CS:GO] PTaH - V1.0.8
Reply With Quote #103

hi guys

I Have Problem In Compile This Plugin:
PHP Code:
#pragma semicolon 1 
#include <PTaH> 

public Plugin myinfo =
{
    
name "Cleaner",
    
author "Phoenix (˙·٠●Феникс●٠·˙)",
    
version "1.0.0",
    
url "https://zizt.ru/ | http://hlmod.ru | https://forums.alliedmods.net/"
};

char sPath[128];
char sFilter[32][256];
int sFilter_;

public 
void OnPluginStart()  
{
    
BuildPath(Path_SMsPathsizeof(sPath), "configs/cleaner.cfg");
    if(!
FileExists(sPath)) SetFailState("[Cleaner] File cleaner.cfg not found");
    
PTaH(PTaH_ServerConsolePrintHookServerConsolePrint); 
}

public 
void OnMapStart() 
{
    
sFilter_ 0;
    
File bdc OpenFile(sPath"r");
    while (!
bdc.EndOfFile())
    {
        
bdc.ReadLine(sFilter[sFilter_], sizeof(sFilter[]));
        
sFilter_++;
    }
    
delete bdc;
}

public 
Action ServerConsolePrint(const char[] sMessage
{
    for(
int isFilter_i++) if (StrContains(sMessagesFilter[i]) != -1) return Plugin_Handled
    return 
Plugin_Continue

error:


please help me.thank you
Dr.Mohammad is offline