hey guyz.....i need some help
#10

Quote:
Originally Posted by Issam
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(text[0] == '@')
    {
        new Pname[24], string[150];
        GetPlayerName(playerid, Pname, 24);
        format(string, sizeof(string), "|TEAM CHAT| %s(%d): %s", Pname, playerid, text[1]);
        for(new i; i<MAX_PLAYERS; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            if(team[playerid] == team[i]) SendClientMessage(i, -1, string);
        }
        return 0;
    }
    else
{
    new name[MAX_PLAYER_NAME], stringZ[128];
    GetPlayerName(playerid,name,sizeof(name));
    format(stringZ,sizeof(stringZ),"%s[%d] : %s",name, playerid, text);
    SendClientMessageToAll(0xFFFFFFFF,stringZ);
   
    return 0;
}
    return 1;
}

Код:
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(69) : warning 217: loose indentation
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(346) : warning 217: loose indentation
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(410) : warning 225: unreachable code
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Line 410:
pawn Код:
return 1;
Remove the

pawn Код:
return 1;
}
And show me your lines: 346,69.

Thanks.
Reply


Messages In This Thread
hey guyz.....i need some help - by _ELIX_ - 18.09.2011, 12:54
Re: hey guyz.....i need some help - by =WoR=Varth - 18.09.2011, 12:57
Re: hey guyz.....i need some help - by _ELIX_ - 18.09.2011, 12:58
Re: hey guyz.....i need some help - by =WoR=G4M3Ov3r - 18.09.2011, 13:03
Re: hey guyz.....i need some help - by =WoR=Varth - 18.09.2011, 13:03
Re: hey guyz.....i need some help - by brett7 - 18.09.2011, 13:15
Re: hey guyz.....i need some help - by _ELIX_ - 18.09.2011, 13:31
Re: hey guyz.....i need some help - by Kingunit - 18.09.2011, 13:34
Re: hey guyz.....i need some help - by Issam - 18.09.2011, 13:42
Re: hey guyz.....i need some help - by Davz*|*Criss - 18.09.2011, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)