 |
|
Junior Member
|

09-19-2017
, 12:33
Re: Steam Works Group Manager
|
#11
|
Quote:
Originally Posted by Obyboby
Thanks dude!!
One question:
How can I add a phrases file for translations, but still be sure that the bonus is read from your plugin?
PHP Code:
PrintToChat(iClient, "[SWGM] You got $%i bonus for participating in our Steam group.", g_iBonus);
I mean this phrase here.
If I move it to the phrases file, will the plugin still be able to read the cash bonus "g_iBonus"?
Hopefully I made myself clear, sorry for the terrible explanation :/
EDIT: here's what I'm trying to do. This would be my phrases file:
PHP Code:
"Phrases"
{
"mex_1"
{
"en" "[SWGM] You got {Green}$%i bonus {Default}for participating in our Steam group, thank you!"
"it" "[SWGM] Hai ricevuto {Green}$%i {Default}di bonus di bonus per essere nel nostro gruppo Steam, grazie!"
}
"mex_2"
{
"en" "[SWGM] Join our Steam group for an in-game BONUS! Type {Green}!group {Default}to join now"
"it" "[SWGM] Usa la tag {Green}nudonudo{Default} per un BONUS in-game! Scrivi {Green}!group per unirti ora"
}
}
Would the "%i" be able to read from the plugin and display the correct bonus amount in game?
Yes I did add
PHP Code:
#include <multicolors>
|
PHP Code:
"Phrases"
{
"mex_1"
{
"#format" "{1:i}"
"en" "[SWGM] You got {Green}${1} bonus {Default}for participating in our Steam group, thank you!"
"it" "[SWGM] Hai ricevuto {Green}${1} {Default}di bonus di bonus per essere nel nostro gruppo Steam, grazie!"
}
"mex_2"
{
"en" "[SWGM] Join our Steam group for an in-game BONUS! Type {Green}!group {Default}to join now"
"it" "[SWGM] Usa la tag {Green}nudonudo{Default} per un BONUS in-game! Scrivi {Green}!group per unirti ora"
}
}
|
|
|
|