Raised This Month: $120 Target: $400
 30% 

Solved % char in menu


Post New Thread Reply   
 
Thread Tools Display Modes
E1_531G
Senior Member
Join Date: Dec 2017
Old 09-17-2018 , 20:37   Re: % char in menu
Reply With Quote #11

Quote:
Originally Posted by SomewhereLost View Post
While we are here, is there a way to show % from a .txt file?
If you mean lang files, it's stil %%.
Example from statsx.txt:
PHP Code:
YOUR_RANK_IS Your rank is %d of %d with %d kill(s), %d hit(s), %0.2f%% eff. and %0.2f%% acc
__________________
My English is A0
E1_531G is offline
SomewhereLost
Senior Member
Join Date: Mar 2014
Location: Georgia
Old 09-20-2018 , 16:18   Re: % char in menu
Reply With Quote #12

I meant the lang file, and no, it doesnt work that way.

UQSTATS_CCHAT_NORMALA = !t%s !y[!t%.01f %s!y] [!tStrafe: %d!y] [!tPre: %.01f!y] [!tSync: %d%%!y]

https://imgur.com/a/d2rtjSZ
__________________

Last edited by SomewhereLost; 09-20-2018 at 16:20.
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 09-20-2018 , 16:53   Re: % char in menu
Reply With Quote #13

It really depends on what you are doing in your code and how (and how many times) you are formatting it. Post the relevant code.
__________________
KliPPy is offline
SomewhereLost
Senior Member
Join Date: Mar 2014
Location: Georgia
Old 09-21-2018 , 15:19   Re: % char in menu
Reply With Quote #14

Its the part from uq_jumpstats.

Quote:
Color_Chat_Lang(ids, RED, "%L",LANG_SERVER,"UQSTATS_CCHAT_NORMALA",g_pl ayername[id], distance[id],Jtype[id], strafe_num[id], prestrafe[id], sync_[id]);
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
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 19:50.


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