String formatting
Hi,
Would I be able to have a text in my .ini file like this: PHP Code:
This shows the %s and %d's as plain text, without them referencing to values. PHP Code:
In-game right now for me it shows: PHP Code:
PHP Code:
|
Re: String formatting
I've had actually the same problem, format the string, or just replace values.
|
Re: String formatting
Quote:
|
Re: String formatting
Quote:
|
Re: String formatting
Quote:
Here is my .ini file: PHP Code:
PHP Code:
|
Re: String formatting
https://gist.github.com/rsKliPPy/965270db41f16503770d
The closest I remember |
Re: String formatting
Maybe the way you're formating it when you're reading the .ini file is "wrong". Not sure if that's what i'm going to say has any sense, but something may be wrong with formatex(), so try that:
PHP Code:
|
Re: String formatting
Quote:
The last issue is that it doesn't recognize ^n as functional, ^n should make a new line but instead it's just showing ^n as a text. EDIT: I found this, basically the same as my problem https://forums.alliedmods.net/showthread.php?t=139530 But oh boy, they really complicated it so much, I don't get what Exolent and fysiks tried to say. EDIT2: Nevermind, fixed it, figured out what they meant by replacing ^^n with ^n. |
Re: String formatting
Oh yes, you can't replace ^n with anything neither, that's awkward :@
|
Re: String formatting
Quote:
^n has it's own function, breaking lines. |
All times are GMT -4. The time now is 13:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.