CSGSI
CSGSI copied to clipboard
Int Null value handling
Change it to other random number. Because if the player have -1 kill The program cant tell if its a null value or a real value. Thank you, Guy
Hi,
I have to admit, I had not thought of that (mainly because I don't play CS:GO anymore). But I'm not sure if returning int.MinValue
will be an acceptable solution.
I'm thinking of maybe switching everything over to nullable value types (int?
and bool?
) because returning anything other than null
will always be misleading in some context. This would mean breaking a lot of code for everyone, though.
If you have any ideas/suggestions, please feel free to share them with me.
It will break lot of codes. Better solution will be to switch it to a lower number. And at the same time make a fixed version with bool return or something...