error 021: symbol already defined: "NameTimer"
#1

I got this one error when i trying to compile

error 021: symbol already defined: "NameTimer"
warning 203: symbol is never used: "vehicleEntered"

Code 1 where the "nametimer" is :
Код:
public CustomPickups()
{
	new Float:oldposx, Float:oldposy, Float:oldposz;
	new string[128];
	NameTimer();
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			GetPlayerPos(i, oldposx, oldposy, oldposz);
			new tmpcar = GetPlayerVehicleID(i);
			if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0
2nd place where the "nametimer" is :
Код:
public NameTimer()
{
	for(new i = 0;i < MAX_PLAYERS;i++)
 	{
	 	if(IsPlayerConnected(i))
 		{
 			for(new q = 0;q < MAX_PLAYERS;q++)
 			{
				if(IsPlayerConnected(q))
				{
 					new Float:p1x;
					new Float:p1y;
					new Float:p1z;
					new Float:p2x;
					new Float:p2y;
					new Float:p2z;
					if(IsPlayerConnected(i) && IsPlayerConnected(q))
					{
						GetPlayerPos(i,p1x,p1y,p1z);
  					GetPlayerPos(q,p2x,p2y,p2z);
						if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance)
						{
							if(PlayerInfo[q][pMaskuse] != 1)
	  					{
								ShowPlayerNameTagForPlayer(i,q,1);
							}
	  				}
						else
						{
							ShowPlayerNameTagForPlayer(i,q,0);
						}
          }
        }
      }
    }
	}
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)