Raised This Month: $51 Target: $400
 12% 

[L4D2] Super Tanks


Post New Thread Reply   
 
Thread Tools Display Modes
Dominatez
Senior Member
Join Date: Oct 2009
Location: Birmingham, UK
Old 10-23-2022 , 13:05   Re: [L4D2] Super Tanks
Reply With Quote #341

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;
}

Last edited by Dominatez; 10-23-2022 at 13:05.
Dominatez is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 10-23-2022 , 14:22   Re: [L4D2] Super Tanks
Reply With Quote #342

Dominatez,
Code:
int target; /* <== there */ float InfectedPos[3], SurvivorPos[3], nearest = 0.0;
__________________
Grey83 is offline
Dusk Holloway
Junior Member
Join Date: May 2018
Old 05-07-2023 , 02:26   Re: [L4D2] Super Tanks
Reply With Quote #343

Quote:
Originally Posted by King_OXO View Post
your request
Tanks still explode, and chat is still used don't know what I did wrong "SuperTanks_for_sonic" is in the scripting folder
Dusk Holloway is offline
King_OXO
Senior Member
Join Date: Dec 2020
Location: Brazil
Old 05-09-2023 , 19:03   Re: [L4D2] Super Tanks
Reply With Quote #344

Quote:
Originally Posted by Dusk Holloway View Post
Tanks still explode, and chat is still used don't know what I did wrong "SuperTanks_for_sonic" is in the scripting folder
Use mutant tanks. This plugin is old and abandoned
__________________
My Noob Plugins

Discord:WhiteFire#1301
Steam:WhiteFire
Youtube
King_OXO is offline
artem221
Junior Member
Join Date: Jan 2024
Old 02-04-2024 , 03:44   Re: [L4D2] Super Tanks
Reply With Quote #345

Quote:
Originally Posted by King_OXO View Post
Use mutant tanks. This plugin is old and abandoned
what to do when I downloaded super tanks, they work for me, but there are mistakes: when they kill me, the game crashes and I don't show which tank I kill, I just write the tank and its health! PLEASE HELP ME SOLVE THE PROBLEMS!!!!!!!!!!!
artem221 is offline
Natan
BANNED
Join Date: Aug 2015
Location: Usa
Old 02-05-2024 , 09:18   Re: [L4D2] Super Tanks
Reply With Quote #346

Quote:
Originally Posted by artem221 View Post
what to do when I downloaded super tanks, they work for me, but there are mistakes: when they kill me, the game crashes and I don't show which tank I kill, I just write the tank and its health! PLEASE HELP ME SOLVE THE PROBLEMS!!!!!!!!!!!
As previous comment says... try to use updated plugins (ex: Mutan tanks)-- if you still want to use this plugin.. Insert here the error log, plugins ,extensions and version of gamedata you´re using. With that info we can help you in a detailed way.
Cheers.-
Natan is offline
Send a message via ICQ to Natan Send a message via AIM to Natan Send a message via Yahoo to Natan Send a message via Skype™ to Natan
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode