Raised This Month: $ Target: $400
 0% 

Steam Works Group Manager


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Russian85
Junior Member
Join Date: Aug 2017
Old 09-19-2017 , 12:33   Re: Steam Works Group Manager
Reply With Quote #11

Quote:
Originally Posted by Obyboby View Post
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"
    
}

Russian85 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:38.


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