correct syntax :s

For adding on to an existing NWInt using setnwint
I thought this was correct but its obviously not.
ply:SetNWInt(“hurpdurps”, ply:GetNWInt(“hurpdurps”) + 2)

[lua]
ply:SetNWInt(“hurpdurps”, ply:GetNWInt(“hurpdurps”,0) + 2)
[/lua]

Why the zero on the GetNWInt()?

It’s the default value. If the nw int is nil it returns the second value passed to the function instead.

Oh, thanks.