View Single Post
komashchenko
BANNED
Join Date: Nov 2013
Old 12-09-2017 , 03:59   Re: [CS:GO] PTaH - V1.0.8
Reply With Quote #104

Quote:
Originally Posted by Dr.Mohammad View Post
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
Spoiler

Last edited by komashchenko; 12-09-2017 at 04:00.
komashchenko is offline