Quote:
Originally Posted by Grey83
Changes 1.1.0:- The code is entirely in the new syntax.
- Fixed a memory leak due to the menu.
- Added support for translating messages and menus.
- Fixed plugin operation on not cs_* and not de_* maps (including maps from the Workshop).
- Fixed disarming (mostly needed fixing for grenades).
- Minor code optimization.
PHP Code:
//// Knife_Round 1.0.0.sp // // Code size: 8392 bytes // Data size: 3240 bytes // Stack/heap size: 16740 bytes // Total requirements: 28372 bytes // // Compilation Time: 0,3 sec // ----------------------------------------
//// csgo_knife_round 1.1.0.sp // // Code size: 8524 bytes // Data size: 2984 bytes // Stack/heap size: 16724 bytes // Total requirements: 28232 bytes // // Compilation Time: 0,22 sec // ----------------------------------------
|
Thank you again! For optimizing a new plugin release here on am forums: ). I added Latvian translations:
HTML Code:
"Phrases"
{
"RoundStart_Hint"
{
"en" "The knife round has begun. The winners determine their team!"
"lv" "Nažu raunds ir sācies! Uzvarētāji varēs izvēlēties komandu kurā spēlēt!"
"ru" "Ножевой раунд начался. Победители определяют свою команду!"
}
"RoundStart_Chat"
{
"en" "The knife round has begun. The winners determine their team!"
"lv" "Nažu raunds ir sācies! Uzvarētāji varēs izvēlēties komandu kurā spēlēt!"
"ru" "Ножевой раунд начался. Победители определяют свою команду!"
}
"RoundEnd_Hint"
{
"en" "The winners choose the team!"
"lv" "Uzvarētāji tagad izvēlēsies komandu kurā spēlēt!"
"ru" "Победители выбирают команду!"
}
"RoundEnd_Chat"
{
"en" "The winners choose the team!"
"lv" "Uzvarētāji tagad izvēlēsies komandu kurā spēlēt!"
"ru" "Победители выбирают команду!"
}
"VoteMenu_Title"
{
"en" "! CHOOSE THE TEAM YOU WANT TO START !"
"lv" "! IZVĒLIES KOMANDU KURĀ VĒLIES SPĒLĒT !"
"ru" "Голосуй за какую команду хочешь играть"
}
"VoteMenu_CT"
{
"en" "Counter-Terrorists"
"lv" "Counter-Terrorists"
"ru" "Спецназ"
}
"VoteMenu_T"
{
"en" "Terrorists"
"lv" "Terrorists"
"ru" "Террористы"
}
"TeamChoosed"
{
"#format" "{1:t}"
"en" "The winning team chose to play on the {1} team."
"lv" "Uzvarētāju komanda izvēlējās spēlēt komandā {1}."
"ru" "Победители выбрали играть за команду: {1}."
}
}
btw there is this error:
L 03/19/2023 - 00:09:53: [SM] Call stack trace:
L 03/19/2023 - 00:09:53: [SM] [0] FormatEx
L 03/19/2023 - 00:09:53: [SM] [1] Line 126, /home/forums/content/files/2/5/6/7/1/3/199982.attach::Menu_Vote
L 03/19/2023 - 00:09:53: [SM] [3] VoteMenu
L 03/19/2023 - 00:09:53: [SM] [4] Line 105, /home/forums/content/files/2/5/6/7/1/3/199982.attach::CS_OnTerminateRound
L 03/19/2023 - 00:09:53: [SM] Exception reported: Translation failed: invalid client index 8202 (arg 6)
L 03/19/2023 - 00:09:53: [SM] Blaming: regularmapsonly/csgo_knife_round 1.1.0.smx
__________________