Unreachable Code
#1

Can anyone help me with these following issues pls?

pawn Code:
C:\Documents and Settings\Andrea\Desktop\SD CNR\filterscripts\LuxAdmin.pwn(362) : warning 235: public function lacks forward declaration (symbol "AfterPlayerConnect")
C:\Documents and Settings\Andrea\Desktop\SD CNR\filterscripts\LuxAdmin.pwn(370) : warning 235: public function lacks forward declaration (symbol "OnGetPlayerKeys")
C:\Documents and Settings\Andrea\Desktop\SD CNR\filterscripts\LuxAdmin.pwn(713) : warning 225: unreachable code
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.


Line 713 :
pawn Code:
if(ServerInfo[ConnectMessages] == 1)
    {
        new pAKA[256];
        pAKA = dini_Get("LuxAdmin/Config/aka.txt",tmp3);
        if (strlen(pAKA) < 3)
        format(str,sizeof(str),"* Player %s (Id:%d) has joined the server", PlayerName,playerid);
        else if (!strcmp(pAKA,PlayerName,true))
        format(str,sizeof(str),"* Player %s (Id:%d) has joined the server", PlayerName,playerid);
        else format(str,sizeof(str),"Player %s (Id:%d) has joined the server (Aka: %s)",PlayerName,playerid,pAKA);

        for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i) && playerid != i)
        {
        if(AccInfo[i][Level] > 2)
        SendClientMessage(i,grey,str);
        else
        {
        format(string,sizeof(string),"* Player %s (Id:%d) has joined the server", PlayerName, playerid);
        SendClientMessage(i,grey,string);
        }
        }
    }

If anyone can help me id give rep
Reply


Messages In This Thread
Unreachable Code - by Soulbad - 07.03.2012, 12:41
Re: Unreachable Code - by Konstantinos - 07.03.2012, 12:44
Re: Unreachable Code - by Soulbad - 07.03.2012, 12:46
Re: Unreachable Code - by Konstantinos - 07.03.2012, 12:47
Re: Unreachable Code - by Soulbad - 07.03.2012, 12:48
Re: Unreachable Code - by Mark™ - 07.03.2012, 12:49
Re: Unreachable Code - by Konstantinos - 07.03.2012, 12:51
Re: Unreachable Code - by Soulbad - 07.03.2012, 12:51
Re: Unreachable Code - by Mark™ - 07.03.2012, 12:52
Re: Unreachable Code - by Soulbad - 07.03.2012, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)