AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Need Help To Fix This Chat Bug (https://forums.alliedmods.net/showthread.php?t=309866)

Mr Misw 08-10-2018 00:54

Need Help To Fix This Chat Bug
 
2 Attachment(s)
Hello Everyone ,

Description
I need a help regarding a Chat Prefix in a XP system Plugin

Problem :
Screenshot:

Attachment 170895

Chat Is coming twice..

Can Anyone fix this ?

OciXCrom 08-10-2018 07:33

Re: Need Help To Fix This Chat Bug
 
Of course it's coming twice when you have 2 plugins that do the same thing.

Mr Misw 08-10-2018 10:25

Re: Need Help To Fix This Chat Bug
 
Quote:

Originally Posted by OciXCrom (Post 2609445)
Of course it's coming twice when you have 2 plugins that do the same thing.

No other chat plugin is installed .. this is coming only beacuse of this plugin

Ghosted 08-10-2018 11:42

Re: Need Help To Fix This Chat Bug
 
Quote:

Originally Posted by Mr Misw (Post 2609465)
No other chat plugin is installed .. this is coming only beacuse of this plugin

Check carefully cause you are wrong, i have tested and working fine

OciXCrom 08-10-2018 11:49

Re: Need Help To Fix This Chat Bug
 
+1 - I checked the code, you have 2 plugins.

I suggest you use these two plugins instead:
https://forums.alliedmods.net/showthread.php?t=308540
https://forums.alliedmods.net/showthread.php?t=297952

CrAzY MaN 08-10-2018 12:30

Re: Need Help To Fix This Chat Bug
 
PHP Code:

else 
    {
        
SzAlive format(SzMessages191"^1[^4%s^1] ^3%s : ^1%s",  ranks_names[rank[id]], SzNameSzMessages) : format(SzMessages191"^1*DEAD* ^1(%s) ^1[^4%s^1] ^3%s : ^1%s"ranks_names[rank[id]], SzNameSzMessages)
    } 

->

PHP Code:

else 
    {
        
SzAlive format(SzMessages191"^3%s : ^1%s",  SzNameSzMessages) : format(SzMessages191"^1*DEAD* ^1(%s) ^1[^4%s^1] ^3%s : ^1%s"ranks_names[rank[id]], SzNameSzMessages)
    } 

Another :
PHP Code:

    else 
    {
        
SzAlive format(SzMessages191"^1(%s) ^1[^4%s^1] ^3%s : ^1%s"SzGTeam[SzGetTeam], ranks_names[rank[id]], SzNameSzMessages) : format(SzMessages191"^1*DEAD* ^1(%s) ^1[^4%s^1] ^3%s : ^1%s"SzGTeam[SzGetTeam], ranks_names[rank[id]], SzNameSzMessages)
    } 

->
PHP Code:

    else 
    {
        
SzAlive format(SzMessages191"^1(%s) ^3%s : ^1%s"SzGTeam[SzGetTeam],  SzNameSzMessages) : format(SzMessages191"^1*DEAD* ^1(%s) ^1[^4%s^1] ^3%s : ^1%s"SzGTeam[SzGetTeam], ranks_names[rank[id]], SzNameSzMessages)
    } 

But, I suggest you to use other xp systems till there's a new release of that outdated plugin.

P.S. :
Code:
if(get_user_flags(id) && ADMIN_KICK) . . . else if(get_user_flags(id) && ADMIN_LEVEL_H)

->
Code:
if(get_user_flags(id) & ADMIN_KICK) . . . else if(get_user_flags(id) & ADMIN_LEVEL_H)

CrAzY MaN 08-10-2018 12:41

Re: Need Help To Fix This Chat Bug
 
Quote:

Originally Posted by OciXCrom (Post 2609486)
+1 - I checked the code, you have 2 plugins.

I suggest you use these two plugins instead:
https://forums.alliedmods.net/showthread.php?t=308540
https://forums.alliedmods.net/showthread.php?t=297952

He isn't using any other Chat Managers.
That's just in that XP PLUGIN!


All times are GMT -4. The time now is 03:14.

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