warning 225: unreachable code
#6

pawn Код:
// Global Variable
new
    NameTimer
;

// Somewhere in your script:
public NameTimer() // <-- error 021: symbol already defined: "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);
                        }
                    }
                }
            }
        }
    }
}
You've defined it as a variable and then use the same name as a callback. Just change the name.
Reply


Messages In This Thread
warning 225: unreachable code - by HardRock - 03.06.2013, 12:09
Re: warning 225: unreachable code - by Vince - 03.06.2013, 12:28
Re: warning 225: unreachable code - by HardRock - 03.06.2013, 12:49
Re: warning 225: unreachable code - by Konstantinos - 03.06.2013, 12:56
Re: warning 225: unreachable code - by HardRock - 03.06.2013, 13:02
Re: warning 225: unreachable code - by Konstantinos - 03.06.2013, 13:06
Re: warning 225: unreachable code - by HardRock - 03.06.2013, 14:34

Forum Jump:


Users browsing this thread: 3 Guest(s)