Script error with delivery app

Status
Not open for further replies.
Messages
2,217
Reaction score
3,124
Points
985
Location
United Kingdom
Type of bug: lua

Description of the bug: Type "-" in the amount on delivery app and it will give a script error.

How to reproduce the bug:
^

Time stamp(s): N/A

*Errors:

[ERROR] lua/includes/extensions/math.lua:40: bad argument #1 to 'max' (number expected, got string)
1. max - [C]:-1
2. Clamp - lua/includes/extensions/math.lua:40
3. fnEnter - gamemodes/perp/gamemode/modules/deliveryshop/gui/delivery_buttons.lua:45
4. OnEnter - gamemodes/perp/gamemode/modules/guicore/general/derma_utils_fix.lua:203
5. unknown - lua/vgui/dtextentry.lua:79

*Media:
 
Upvote 0

Sam

Messages
2,316
Reaction score
4,180
Points
1,270
Location
Sweden
Type of bug: lua

Description of the bug: Type "-" in the amount on delivery app and it will give a script error.

How to reproduce the bug:
^

Time stamp(s): N/A

*Errors:

[ERROR] lua/includes/extensions/math.lua:40: bad argument #1 to 'max' (number expected, got string)
1. max - [C]:-1
2. Clamp - lua/includes/extensions/math.lua:40
3. fnEnter - gamemodes/perp/gamemode/modules/deliveryshop/gui/delivery_buttons.lua:45
4. OnEnter - gamemodes/perp/gamemode/modules/guicore/general/derma_utils_fix.lua:203
5. unknown - lua/vgui/dtextentry.lua:79

*Media:

FYI, “-“ is not a valid amount, you need to use numbers 0-9 :)
 
Status
Not open for further replies.
Top