Thread: [Solved] String formatting
View Single Post
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-12-2019 , 06:55   String formatting
Reply With Quote #1

Hi,

Would I be able to have a text in my .ini file like this:
PHP Code:
"Player Name: %s | Player Cash: %d" 
and then having the %s and %d show values instead of just %s %d?

This shows the %s and %d's as plain text, without them referencing to values.

PHP Code:
ShowSyncHudMsgidg_iSyncHud"%s"g_eHudsMAIN_HUD ], szNameiCash ); 
If you still didn't get the point:

In-game right now for me it shows:
PHP Code:
Player Name: %Player Cash: %
Instead of showing
PHP Code:
Player NameDoNii Player Cash123456 
I know %L works for language file but what about .ini files?
__________________

Last edited by edon1337; 04-12-2019 at 12:35.
edon1337 is offline