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
#2

CTRL+F then write NameTimer in because there are 2 public NameTimer() 's
Reply
#3

Look at your scripts include files, there should be another function with the same name.
Reply
#4

shows me same Results-lmao
Reply
#5

Quote:
Originally Posted by Don Correlli
Look at your scripts include files, there should be another function with the same name.
Didnt got it, How to do it?
Reply
#6

pawno\includes\checkallurincludes.inc - Understand
Reply
#7

Quote:
Originally Posted by ™•Taz86•™
Didnt got it, How to do it?
You're probably using the GF / GF edit script (I can tell that by looking at the NameTimer code) and you're probably using custom include files. Go to the \pawno\include\ folder and look at those custom include files and find the NameTimer and get rid of it.
Reply
#8

Most editers accidentally put s**tty include or stuff in their GMs
Reply
#9

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by ™•Taz86•™
Didnt got it, How to do it?
You're probably using the GF / GF edit script (I can tell that by looking at the NameTimer code) and you're probably using custom include files. Go to the \pawno\include\ folder and look at those custom include files and find the NameTimer and get rid of it.
Finally Worked, Thank you.
Thank you others Aswell!
Reply
#10

Quote:
Originally Posted by Thrarod
Most editers accidentally put s**tty include or stuff in their GMs
Amen For that!
So true!

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)