Raised This Month: $18 Target: $400
 4% 

Release SourceBans++ (v1.6.3) [Updated: 2018-04-09]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
cravenge
Veteran Member
Join Date: Nov 2015
Location: Black Hole
Old 04-23-2017 , 21:44   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1011

Looks like you forgot to change the include files. That's why it produces those errors. Correct me if I'm wrong.

It's working fine for me after fixing some mistakes in every source file and compiling them.

Last edited by cravenge; 04-23-2017 at 21:45.
cravenge is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-23-2017 , 21:56   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1012

Quote:
Originally Posted by cravenge View Post
It's working fine for me after fixing some mistakes in every source file and compiling them.
Such as...?
__________________
sneaK is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Black Hole
Old 04-24-2017 , 00:17   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1013

In sbpp_main.sp, instead of SP_ERROR_NATIVE, they use 1 and 2 (which is SP_ERROR_FILE_FORMAT and SP_ERROR_DECOMPRESSOR respectively in functions.inc) when a native returns an error, hence why it was producing those errors.

And in sbpp_comms.sp, (Don't mind the new syntax) I think it should be:
PHP Code:
public Native_SetClientMute(Handle hPluginint numParams)
{
    
int target GetNativeCell(1);
    if (
target || target MaxClients)
    {
        
ThrowNativeError(SP_ERROR_NATIVE"Invalid client index %d"target);
        return 
false;
    }

    if (!
IsClientInGame(target))
    {
        
ThrowNativeError(SP_ERROR_NATIVE"Client %d is not in game"target);
        return 
false;
    }
        
    
bool muteState bool:GetNativeCell(2);
    
int muteLength GetNativeCell(3);
        
    if (
muteState && muteLength == 0)
    {
        
ThrowNativeError(SP_ERROR_NATIVE"Permanent mute is not allowed!");
        return 
false;
    }

    
bool bSaveToDB bool:GetNativeCell(4);
    if (!
muteState && bSaveToDB)
    {
        
ThrowNativeError(SP_ERROR_NATIVE"Removing punishments from DB is not allowed!");
        return 
false;
    }

    
char sReason[256];
    
GetNativeString(5sReasonsizeof(sReason));

    if (
muteState)
    {
        if (
g_MuteType[target] > bNot)
        {
            return 
false;
        }

        
PerformMute(target_muteLength___sReason);
        if (
bSaveToDB)
            
SavePunishment(_targetTYPE_MUTEmuteLengthsReason);
    }
    else
    {
        if (
g_MuteType[target] == bNot)
        {
            return 
false;
        }

        
PerformUnMute(target);
    }

    return 
true;

instead of:
PHP Code:
public Native_SetClientMute(Handle:hPluginnumParams)
{
    new 
target GetNativeCell(1);
    if (
target || target MaxClients)
    {
        return 
ThrowNativeError(SP_ERROR_NATIVE"Invalid client index %d"target);
    }

    if (!
IsClientInGame(target))
    {
        return 
ThrowNativeError(SP_ERROR_NATIVE"Client %d is not in game"target);
    }

    new 
bool:muteState GetNativeCell(2);
    new 
muteLength GetNativeCell(3);
    if (
muteState && muteLength == 0)
    {
        return 
ThrowNativeError(SP_ERROR_NATIVE"Permanent mute is not allowed!");
    }

    new 
bool:bSaveToDB GetNativeCell(4);
    if (!
muteState && bSaveToDB)
    {
        return 
ThrowNativeError(SP_ERROR_NATIVE"Removing punishments from DB is not allowed!");
    }

    new 
String:sReason[256];
    
GetNativeString(5sReasonsizeof(sReason));

    if (
muteState)
    {
        if (
g_MuteType[target] > bNot)
        {
            return 
false;
        }

        
PerformMute(target_muteLength___sReason);

        if (
bSaveToDB)
            
SavePunishment(_targetTYPE_MUTEmuteLengthsReason);
    }
    else
    {
        if (
g_MuteType[target] == bNot)
        {
            return 
false;
        }

        
PerformUnMute(target);
    }

    return 
true;


Last edited by cravenge; 04-24-2017 at 00:26.
cravenge is offline
FluxyLynx
New Member
Join Date: Feb 2017
Old 04-26-2017 , 13:20   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1014

Hello, first of all good work and keep it up!

However, during the installation of SourceBans++ we ran into a problem called the ajax error.

When we installed the original SourceBans with a creation of a new database called "banstf" (evocommunity.com/banstf/ <- for now) it worked perfectly but we want SourceBans++

Do any of you know how to fix this error?

Last edited by FluxyLynx; 04-26-2017 at 13:38.
FluxyLynx is offline
leeter
Member
Join Date: Jun 2015
Old 04-26-2017 , 13:46   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1015

Why i am getting this Errors? Anyone now?

Errors:
sbpp_sleuth.smx (SourceBans++: SourceSleuth): Native "SourceBans_BanPlayer" was not found
sbpp_main.smx (SourceBans++: Main Plugin): unexpected error 23 in AskPluginLoad callback
sbpp_comms.smx (SourceBans++: SourceComms): unexpected error 23 in AskPluginLoad callback
leeter is offline
DaRk56
Senior Member
Join Date: Jul 2009
Location: France
Old 04-26-2017 , 14:55   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1016

@leeter Delete old version (All files ! Includes/plugins/scripting), and install new v1.6.0
I had the same error.
DaRk56 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-26-2017 , 14:58   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1017

Quote:
Originally Posted by leeter View Post
Why i am getting this Errors? Anyone now?

Errors:
sbpp_sleuth.smx (SourceBans++: SourceSleuth): Native "SourceBans_BanPlayer" was not found
sbpp_main.smx (SourceBans++: Main Plugin): unexpected error 23 in AskPluginLoad callback
sbpp_comms.smx (SourceBans++: SourceComms): unexpected error 23 in AskPluginLoad callback
You're not using the new include file.
__________________
sneaK is offline
leeter
Member
Join Date: Jun 2015
Old 04-26-2017 , 20:21   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1018

Quote:
Originally Posted by DaRk56 View Post
@leeter Delete old version (All files ! Includes/plugins/scripting), and install new v1.6.0
I had the same error.
I did, but i have still this errors.

Errors:
sbpp_sleuth.smx (SourceBans++: SourceSleuth): Native "SourceBans_BanPlayer" was not found
sbpp_main.smx (SourceBans++: Main Plugin): unexpected error 23 in AskPluginLoad callback
sbpp_comms.smx (SourceBans++: SourceComms): unexpected error 23 in AskPluginLoad callback

Last edited by leeter; 04-26-2017 at 20:31.
leeter is offline
Groruk
AlliedModders Donor
Join Date: Jul 2016
Old 04-27-2017 , 03:49   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1019

Quote:
Originally Posted by leeter View Post
I did, but i have still this errors.

Errors:
sbpp_sleuth.smx (SourceBans++: SourceSleuth): Native "SourceBans_BanPlayer" was not found
sbpp_main.smx (SourceBans++: Main Plugin): unexpected error 23 in AskPluginLoad callback
sbpp_comms.smx (SourceBans++: SourceComms): unexpected error 23 in AskPluginLoad callback
Can you provide a list of your used plugins (sm plugins list)?
Groruk is offline
tiweb
New Member
Join Date: Apr 2010
Old 04-27-2017 , 09:28   Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
#1020

Code:
xajax Error: xajax failed to automatically identify your Request URI.Please set the Request URI explicitly when you instantiate the xajax object.
any help plz
tiweb is offline
Closed Thread


Thread Tools
Display Modes

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 03:24.


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