Raised This Month: $32 Target: $400
 8% 

Solved Problems languages


Post New Thread Reply   
 
Thread Tools Display Modes
SmokieCS
AlliedModders Donor
Join Date: Nov 2019
Location: Denmark
Old 04-11-2021 , 01:19   Re: Problems languages
Reply With Quote #11

Quote:
Originally Posted by slumdog18 View Post
How do you do the last part I didn't realize?
If you use your own stuff for reference.

Code:
CPrintToChat(client, "%t", "Rock The Vote", client);
This will print this part to chat, and also react to the numbers you specify in format in the translation:

Code:
"Phrases"
{
"Rock The Vote"
{
"pt_p" "Rock The Vote:"
}
You can find it all on the Language Wiki
__________________
Server Manager & Chairman of the Board - https://esportharte.dk/
Freelance Server Support
Former Co-Owner - https://tfrag.dk/
SmokieCS is offline
slumdog18
Member
Join Date: Feb 2021
Old 04-12-2021 , 21:39   Re: Problems languages
Reply With Quote #12

Quote:
Originally Posted by SmokieCS View Post
If you use your own stuff for reference.

Code:
CPrintToChat(client, "%t", "Rock The Vote", client);
This will print this part to chat, and also react to the numbers you specify in format in the translation:

Code:
"Phrases"
{
"Rock The Vote"
{
"pt_p" "Rock The Vote:"
}
You can find it all on the Language Wiki
I'm not getting any of this.


already put in the file "rockthevote.phrases.txt" as you say-te to get in.

and remains the same, I just wanted that pops up the names of players and maps

so also appears in the "nominate"
[SM] {1} sugeriu {2}.
slumdog18 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-13-2021 , 07:27   Re: Problems languages
Reply With Quote #13

Dude I see you marked as solved (hope you really did).

Otherwise try some examples from the wiki page

As mentioned already, you need the format tag in your translations example:

Code:
"Map Nominated"
{
"#format" "{1:s},{2:s}"
"pt_p" "{1} sugeriu {2} para o Rock the Vote."
}
And only doing that won't solve your problem

You have to be sure that in your code you are also passing two arguments to the PrintToChat

Code:
CPrintToChat(client, "%t", "Map Nominated", "Parameter 1", "Parameter 2");
__________________

Last edited by Marttt; 04-13-2021 at 07:27.
Marttt is offline
Reply


Thread Tools
Display Modes

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 14:49.


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