Raised This Month: $51 Target: $400
 12% 

Translation Request


Post New Thread Reply   
 
Thread Tools Display Modes
iNdio
Senior Member
Join Date: Apr 2015
Location: Ro
Old 09-21-2016 , 12:23   Re: Translation Request
Reply With Quote #11

PHP Code:
[ro]
T_RESET_MSG = \g%\r%\nSi-a resetat scorul.
CT_RESET_MSG = \g%\b%\nSi-a resetat scorul.
ALREADY_MSG = \g%\nScorul tau este deja 0.

[it]
T_RESET_MSG = \g%\r%\nHa cancellato il suo punteggio.
CT_RESET_MSG = \g%\b%\nHa cancellato il suo punteggio.
ALREADY_MSG = \g%\nIl tuo punteggio è già a 0. 
__________________
Where Cs had no value, amxx, sometimes, had its price...
iNdio is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-21-2016 , 13:33   Re: Translation Request
Reply With Quote #12

Quote:
Originally Posted by ish12321 View Post
Please translate the following
Code:
T_RESET_MSG = \g%s \r%s \nHas Just Reset His Score.
CT_RESET_MSG = \g%s \b%s \nHas Just Reset His Score.
There is no need to repeat text like this. Handle it on the plugin, example:
Code:
print_color( id, "%L", id, "RESET_MSG", "your other string", ( is_ct( id ) ? '\b': '\r' ), player_name )
for the lang:
Code:
RESET_MSG = \g%s %c%s \nHas Just Reset His Score.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective
addons_zz is offline
ish12321
Veteran Member
Join Date: May 2016
Old 09-22-2016 , 02:52   Re: Translation Request
Reply With Quote #13

Quote:
Originally Posted by addons_zz View Post
There is no need to repeat text like this. Handle it on the plugin, example:
Code:
print_color( id, "%L", id, "RESET_MSG", "your other string", ( is_ct( id ) ? '\b': '\r' ), player_name )
for the lang:
Code:
RESET_MSG = \g%s %c%s \nHas Just Reset His Score.
Thanks for your suggestion
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
Belo95135
Member
Join Date: Jun 2012
Location: Slovakia
Old 09-24-2016 , 06:17   Re: Translation Request
Reply With Quote #14

Slovak (sk)
Code:
[sk]
T_RESET_MSG = \g%s \r%s \nsi resetoval svoje skore.
CT_RESET_MSG = \g%s \b%s \nsi resetoval svoje skore.
ALREADY_MSG = \g%s \nTvoje skore uz bolo resetovane.
Belo95135 is offline
Kurtan
AlliedModders Donor
Join Date: Feb 2016
Location: Sweden
Old 09-24-2016 , 08:18   Re: Translation Request
Reply With Quote #15

Swedish

[se]
T_RESET_MSG = \g%s \r%s \nHar precis återställts sina poäng.
CT_RESET_MSG = \g%s \b%s \nHar precis återställts sina poäng.
ALREADY_MSG = \g%s \nDina poäng är redan noll.
__________________

Last edited by Kurtan; 09-24-2016 at 08:19.
Kurtan is offline
ish12321
Veteran Member
Join Date: May 2016
Old 09-24-2016 , 09:02   Re: Translation Request
Reply With Quote #16

Quote:
Originally Posted by addons_zz View Post
There is no need to repeat text like this. Handle it on the plugin, example:
Code:
print_color( id, "%L", id, "RESET_MSG", "your other string", ( is_ct( id ) ? '\b': '\r' ), player_name )
for the lang:
Code:
RESET_MSG = \g%s %c%s \nHas Just Reset His Score.
I followed your suggestion and something error occurring
Code not compiling

Check this


Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Invalid character constant on line 47
Warning: Expression has no effect on line 47
Error: Expected token: ";", but found "-identifier-" on line 47
Error: Undefined symbol "r" on line 47
Error: Too many error messages on one line on line 47

Compilation aborted.
4 Errors.
Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <ChatPrint>

#define PLUGIN "ResetScore"
#define VERSION "1.0"
#define AUTHOR "Ish Chhabra"

new const TAG[] = "['O|s|G'] |"

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_dictionary("resetscore.txt")
	new reset_call[] = {
		"say /rs",
		"say rs",
		"say /resetscore",
		"say resetscore",
		
		"say_team /rs",
		"say_team rs",
		"say_team /resetscore",
		"say_team resetscore",
		
		"/rs",
		"rs",
		"/resetscore",
		"resetscore"
	}
	for(new i;i < sizeof(reset_call); i++)
	register_clcmd(reset_call[i], "resetscore")
	
}

public resetscore(id) 
{	
	if(cs_get_user_deaths(id) != 0 ) 
	{
		new szName[64]
		set_user_frags(id, 0)
		cs_set_user_deaths(id, 0)
		
		get_user_name(id, szName, charsmax(szName))
		replace_all(szName, charsmax(szName), "['O|s|G'] | ", "")
		ChatPrint( 0, "%L", LANG_PLAYER, "RESET_MSG", TAG, ( is_ct( id ) ? '\b': '\r' ), szName )
	}
	else {
		ChatPrint(id, "%L", LANG_PLAYER, "ALREADY_MSG", TAG)
	}
}

stock is_ct(id)
{
	new team = cs_get_user_team(id)
	if(team==CS_TEAM_CT)
		return true
	return false
}

Last edited by ish12321; 09-24-2016 at 09:20.
ish12321 is offline
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 09-24-2016 , 10:36   Re: Translation Request
Reply With Quote #17

Quote:
Originally Posted by ish12321 View Post
I followed your suggestion and something error occurring
Code not compiling
Sorry, you need to use double quotes, so change this:
Code:
( is_ct( id ) ? '\b': '\r' )
-->
Code:
( is_ct( id ) ? "\b": "\r" )
And on your lang file, change this:
Code:
\g%s %c%s \nHas
-->
Code:
\g%s %s%s \nHas

Update:
Also change this, the value returned by cs_get_user_team(1) should be a CsTeams type/tag:
Code:
new team = cs_get_user_team(id)
-->
Code:
new CsTeams:team = cs_get_user_team(id)
And this, may be just this:
Code:
	if(team==CS_TEAM_CT)
		return true
	return false
-->
Code:
	return team==CS_TEAM_CT
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 09-24-2016 at 10:40. Reason: update
addons_zz is offline
ish12321
Veteran Member
Join Date: May 2016
Old 09-24-2016 , 10:46   Re: Translation Request
Reply With Quote #18

Ok Thanks
Seeing %c as I'm a beginner I thought it's something new type so just used it without using my mind

instead of that new CsTeams:team = cs_get_user_team(id) fix
I preffered this and it's working
Quote:
if(cs_get_user_teams(id)==CS_TEAM_CT)
However thanks for increasing my knowledge

Last edited by ish12321; 09-24-2016 at 10:54.
ish12321 is offline
Reply



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 10:38.


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