Wierd Error
#1

Hey Again,
Im trying to compile my GM, But I got one wierd error.


pawn Код:
C:\Documents and Settings\SunRise Roleplay\gamemodes\srrp.pwn(43822) : error 021: symbol already defined: "NameTimer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[i]Line 43822 Is this:
pawn Код:
{
Well, When I search for "NameTimer()" I find these:
1)
pawn Код:
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);
                        }
          }
        }
      }
    }
    }
}
And the second results of "NameTimer()" Here:

2)
pawn Код:
public CustomPickups()
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new string[128];
    NameTimer();
And more lines here

What To do?

Thanks, Taz.


[i]EDIT: When I do /* And close it up with */ At:
pawn Код:
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);
                        }
          }
        }
      }
    }
    }
}
Its compile the gm, But Im afraid it will make other things not work.
Reply


Messages In This Thread
Wierd Error - by Taz86 - 14.04.2010, 19:59
Re: Wierd Error - by Thrarod - 14.04.2010, 20:02
Re: Wierd Error - by Correlli - 14.04.2010, 20:02
Re: Wierd Error - by Taz86 - 14.04.2010, 20:03
Re: Wierd Error - by Taz86 - 14.04.2010, 20:09
Re: Wierd Error - by Thrarod - 14.04.2010, 20:10
Re: Wierd Error - by Correlli - 14.04.2010, 20:11
Re: Wierd Error - by Thrarod - 14.04.2010, 20:15
Re: Wierd Error - by Taz86 - 14.04.2010, 20:27
Re: Wierd Error - by Taz86 - 14.04.2010, 20:31

Forum Jump:


Users browsing this thread: 1 Guest(s)