There is an error somewhere in the code, but i am just not seeing it.
SuperTanks_for_sonic.sp(1969) : error 001: expected token: ";", but found "-identifier-"
Which is around this piece of code.
Code:
stock int NearestSurvivor(int j)
{
int target, float InfectedPos[3], SurvivorPos[3], nearest = 0.0; //* This Is Line 1969 *//
for (int i=1; i<=MaxClients; i++)
{
if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == 2 && ChaseTarget[i] == 0)
{
GetClientAbsOrigin(j, InfectedPos);
GetClientAbsOrigin(i, SurvivorPos);
float distance = GetVectorDistance(InfectedPos, SurvivorPos);
if (nearest == 0.0)
{
nearest = distance;
target = i;
}
else if (nearest > distance)
{
nearest = distance;
target = i;
}
}
}
return target;
}