Hey,
So I have been coding in SourcePawn for a while now, however I have never realized whether or not you need to set a handle equal to null when you define it as a global handle.
Here is what I mean:
Defining a handle and setting it equal to null:
PHP Code:
#include <sourcemod>
ConVar g_cvConVar = null;
Defining a handle
without setting it equal to null:
PHP Code:
#include <sourcemod>
ConVar g_cvConVar;
When you define a global handle, do you need to set it equal to null, or does defining it automatically set it equal to null?
Thanks!