View Single Post
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 07-03-2022 , 20:08   Re: [L4D2] Rescue Vehicle ETA New Version
Reply With Quote #4

Quote:
Originally Posted by Maur0 View Post
I just tried what you said and when I compile it, I get this error and it doesn't let me :/
Code:
Error 181: function argument named `vector`differs from prototype
error 021: symbol already defined: " GetRandomClient"
Change this:
Code:
L4D_OnSpawnTank(float vector[3], float qangle[3])
To this:
Code:
L4D_OnSpawnTank(const float vecPos[3], const float vecAng[3])
Look for this and remove it:
Code:
int GetRandomClient()
{
	int iClient = 0;
	for (int i = 1; i <= MaxClients; i++)
	{
		if (IsClientInGame(i))
		{
			iClient = i;
			break;
		}
	}
	return iClient;
}
__________________
Psyk0tik is offline