Skip to content
TORNLIFE More

Error Message acquiring standard ammo without cash

Started by A_Mean_Person [1631303] on in Bugs & Issues.

3 replies · 48 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 4 / 4 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
4
Discussion span
→
People posting
3
Likes on archived posts
0
Posts by staff, officers and moderators
2
Authority score
55 / 100
Historical score
33 / 100
Story score
30 / 100
Engagement score
36 / 100
A_Mean_Person [1631303]
Original post:

When i try to aquire standard ammo, i'm getting a "only valid numbers or shortcuts allowed" message, regardless if it is a number or not.

Image

Have tried on a diferent device / browser, and same message.

Also have tried to copy paste a number, but still remains at 0.


I'm currently posting this with TornTools enabled.

Edit:

It apears that this was due to me not having cash on hand and keep trying to buy ammo like a moron, but the error message probably should be changed as it's missleading.
CloudJumper [1636201]Staff
I am unsure how this is being handled at present. System is allowing me to buy 0 ammo if I only type one number in the input box (which it auto-corrects to 0). It also produces corresponding logs.

[image: i.imgur.com]
09:48:00 - 31/07/23You bought 0x Standard 5.56mm Rifle Round for $0 from the ammo locker
09:44:50 - 31/07/23You bought 0x Standard 5.56mm Rifle Round for $0 from the ammo locker
09:44:42 - 31/07/23You bought 0x Standard 5.56mm Rifle Round for $0 from the ammo locker
09:44:36 - 31/07/23You bought 0x Standard 5.56mm Rifle Round for $0 from the ammo locker
If I enter another number after the auto-entered 0, I get the error that the player mentioned.

[image: i.imgur.com]

We need to block 0 ammo purchases and show the correct error when the player does not have sufficient cash on hand. This can be accomplished by disabling the input field and Buy button in case the player has less money on hand than the cost of 1 round ($18 in case of above screenshot).

Passing along to Constantin.

Thanks!
toshykazu [1435333] Admin Staff
I've fixed the part with buying 0 ammo.
The correct error message will result in replacing the money input with another one, I'll do it later.