Skip to content

toString(number, 16) crashes e2 #3659

Description

@AlexALX

Describe the bug

By some reason this code not working with newer wiremod:

    local Rand = toString(random(10000000,159999999), 16)
    local Rand2 = toString(random(10000000,159999999), 16)
    
    print(Rand,Rand)

(sv: Expression 2 (generic): Runtime error 'addons/wire/lua/entities/gmod_wire_expression2/base/compiler.lua:975: invalid value (nil) at index 7 in table for 'concat'' at line -1, char -1)

not sure why. Fixed by replacing random to randint

How to reproduce the bug

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions