That's not how it works. Only the following line is inside of the if statement. All that statement does is check if sdktools is already included, and if it isn't, it includes it. As for the static thing, the global variables are needed in the main file, so using static would eliminate that because it limits it to that one include file. At least that's how I understand it. I guess I could use it for the hGameConfTF part, but the hWeaponEquip might be needed elsewhere.
[edit]
To better explain the if statement, if I were to have used brackets there, it would look like this:
PHP Code:
stock TF_LoadGameData()
{
if (!LibraryExists("sdktools"))
{
#include <sdktools>
}
hGameConf = LoadGameConfigFile("include.tf");
StartPrepSDKCall(SDKCall_Player);
PrepSDKCall_SetFromConf(hGameConf, SDKConf_Virtual, "WeaponEquip");
PrepSDKCall_AddParameter(SDKType_CBaseEntity, SDKPass_Pointer);
hWeaponEquip = EndPrepSDKCall();
}
They work exactly the same way.