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:
|
Remove the
And show me your lines: 346,69.
Thanks.