Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetNW2VarTable returns keys with empty tables. #5396

Open
RaphaelIT7 opened this issue Jan 25, 2023 · 0 comments
Open

GetNW2VarTable returns keys with empty tables. #5396

RaphaelIT7 opened this issue Jan 25, 2023 · 0 comments
Milestone

Comments

@RaphaelIT7
Copy link

Details

When setting an NW2Var to nil, GetNW2VarTable still returns the key with an empty table.

Steps to reproduce

NWVarTable doesn't return keys when the value is nil

Entity(1):SetNWString("Example", nil)
PrintTable(Entity(1):GetNWVarTable())

Output

UserGroup	=	superadmin

NW2VarTable will return keys when the value is nil

Entity(1):SetNW2String("Example", nil)
PrintTable(Entity(1):GetNW2VarTable())

Output

Example:
@robotboy655 robotboy655 added this to the New NWVars milestone Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants