SB-MaterialAdmin / NewServer

New server side for SourceBans Material Admin
GNU General Public License v3.0
42 stars 26 forks source link

Silence issue? #121

Closed rcon420 closed 3 years ago

rcon420 commented 3 years ago

I'm pretty sure there is nothing wrong with my edited Translations file but I get this -

L 05/15/2021 - 21:36:08: Console<0><Console><Console> - sm_silence gamer 1 test
L 05/15/2021 - 21:36:08: [SM] Exception reported: Language phrase "Silence show" not found (arg 4)
L 05/15/2021 - 21:36:08: [SM] Blaming: AdminThirdPartyStuff/materialadmin.smx
L 05/15/2021 - 21:36:08: [SM] Call stack trace:
L 05/15/2021 - 21:36:08: [SM]   [0] VFormat
L 05/15/2021 - 21:36:08: [SM]   [1] Line 119, materialadmin/function.sp::ShowAdminAction
L 05/15/2021 - 21:36:08: [SM]   [2] Line 847, materialadmin/database.sp::CreateDB
L 05/15/2021 - 21:36:08: [SM]   [3] Line 533, materialadmin/database.sp::DoCreateDB
L 05/15/2021 - 21:36:08: [SM]   [4] Line 621, materialadmin/function.sp::GetClientToBd
L 05/15/2021 - 21:36:08: [SM]   [5] Line 536, materialadmin/commands.sp::CommandSil

sm_unsilence gamer
L 05/15/2021 - 21:36:40: [SM] Exception reported: Language phrase "UnSilence show" not found (arg 4)
L 05/15/2021 - 21:36:40: [SM] Blaming: AdminThirdPartyStuff/materialadmin.smx
L 05/15/2021 - 21:36:40: [SM] Call stack trace:
L 05/15/2021 - 21:36:40: [SM]   [0] VFormat
L 05/15/2021 - 21:36:40: [SM]   [1] Line 119, materialadmin/function.sp::ShowAdminAction
L 05/15/2021 - 21:36:40: [SM]   [2] Line 947, materialadmin/database.sp::CreateDB
L 05/15/2021 - 21:36:40: [SM]   [3] Line 533, materialadmin/database.sp::DoCreateDB
L 05/15/2021 - 21:36:40: [SM]   [4] Line 621, materialadmin/function.sp::GetClientToBd
L 05/15/2021 - 21:36:40: [SM]   [5] Line 608, materialadmin/commands.sp::CommandUnSil

My Custom Translations lines for Silence:

    "Silence show"
    {
        "#format"       "{1:s},{2:s},{3:s},{4:s}"
        "en"            "{1} Issued an mute & gag on {3} | Length: {2} | Reason: {4}"
        "ru"            "{1} отключил голосовой и текстовый чат {2} на {3} по причине ({4})"
    }

    "UnSilence show"
    {
        "#format"       "{1:s},{2:s}"
        "en"            "{1} Removed gag & mute from {2}"
        "ru"            "{1} включил голосовой и текстовый чат {2}"
    }

Could someone tell me is it my fault or plugin?

Btw I made changes in the translations because they are poorly written.

rcon420 commented 3 years ago

solved Idk what happened but works now.