AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Release SourceBans++ (v1.6.3) [Updated: 2018-04-09] (https://forums.alliedmods.net/showthread.php?t=263735)

cravenge 04-23-2017 21:44

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
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.

sneaK 04-23-2017 21:56

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
Quote:

Originally Posted by cravenge (Post 2514681)
It's working fine for me after fixing some mistakes in every source file and compiling them.

Such as...?

cravenge 04-24-2017 00:17

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
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;



FluxyLynx 04-26-2017 13:20

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
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?

leeter 04-26-2017 13:46

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
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

DaRk56 04-26-2017 14:55

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
@leeter Delete old version (All files ! Includes/plugins/scripting), and install new v1.6.0
I had the same error.

sneaK 04-26-2017 14:58

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
Quote:

Originally Posted by leeter (Post 2515875)
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.

leeter 04-26-2017 20:21

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
Quote:

Originally Posted by DaRk56 (Post 2515906)
@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. :cry:

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

Groruk 04-27-2017 03:49

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
Quote:

Originally Posted by leeter (Post 2516002)
I did, but i have still this errors. :cry:

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)?

tiweb 04-27-2017 09:28

Re: [RELEASE] SourceBans++ (v1.6.0) [Updated: 2017-04-23]
 
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


All times are GMT -4. The time now is 08:21.

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