View Single Post
monkman
Senior Member
Join Date: Jul 2007
Location: Killadelphia
Old 02-09-2013 , 19:00   Re: [ L4D2 ] Team Manager 2.1
Reply With Quote #7

Quote:
Originally Posted by Mess With The Best View Post
I'm getting this error when complied

Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// teammanager.sp
// E:\Left 4 Dead 2\left4dead2\left4dead2\addons\sourcemod\scripting
.sp(941) : error 017: undefined symbol "L4D2Direct_GetFlowDistance"
Latest Version of SM and Metamod, ReadyUp, L4D2_direct, left4downtown2, Snapshots 1.5 and SKDHooks 2.2 have been installed.

EDITED: This might be a fix to it. Add this to l4d2_direct.inc

Code:
stock Float:L4D2Direct_GetFlowDistance(client)
{
	static Handle:GetFlowDistanceSDKCall = INVALID_HANDLE;

	if (GetFlowDistanceSDKCall == INVALID_HANDLE)
	{
		StartPrepSDKCall(SDKCall_Player);
		
		if (!PrepSDKCall_SetFromConf(L4D2Direct_GetGameConf(), SDKConf_Signature, "CTerrorPlayer::GetFlowDistance"))
		{
			return 0.0;
		}
		
		PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
		PrepSDKCall_SetReturnInfo(SDKType_Float, SDKPass_Plain);
		GetFlowDistanceSDKCall = EndPrepSDKCall();
		
		if (GetFlowDistanceSDKCall == INVALID_HANDLE)
		{
			return 0.0;
		}
	}

	return Float:SDKCall(GetFlowDistanceSDKCall, client, 0);
}
There is a compiled smx in the scritping/compiled folder.
monkman is offline