View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000591 | Gameplay + OpenGL | [All Projects] Bug | public | 2017-04-16 23:25 | 2017-04-17 08:17 |
Reporter | Major Cooke | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Summary | 0000591: String.Format not working properly | ||||
Description | In StatusBars, I'm trying to make this piece of code work:
But it always comes out as "cnt00" instead of "cnt##"" like it's supposed to. | ||||
Steps To Reproduce | Download the attachment, start a new game and right click the mouse. The "cnt" numbers on the right are supposed to go up but they do not. | ||||
Tags | No tags attached. | ||||
D4D.pk3 (521,725 bytes) |
|
String.Format() works correctly, the result of GetAmountOnly("Counter") is always zero. And you can use the following format string to avoid comparison:
|
|
Ah right forgot to mention: |
|
GetAmountOnly() is the same as in the attached file. Just do give counter in the console several times and everything will work as expected. | |
Nice to see I can close my own tickets now. | |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-04-16 23:25 | Major Cooke | New Issue | |
2017-04-16 23:25 | Major Cooke | File Added: D4D.pk3 | |
2017-04-17 03:06 | _mental_ | Status | new => resolved |
2017-04-17 03:06 | _mental_ | Resolution | open => no change required |
2017-04-17 03:06 | _mental_ | Note Added: 0001420 | |
2017-04-17 06:35 | Major Cooke | Note Added: 0001421 | |
2017-04-17 06:55 | _mental_ | Note Added: 0001422 | |
2017-04-17 08:17 | Major Cooke | Status | resolved => closed |
2017-04-17 08:17 | Major Cooke | Note Added: 0001423 |