22.02.2015, 23:28
Eu sei que й ma identaзгo mais ta tudo identado corretamente atй usei site para identar mais continua dando warning e eu nгo quero usar #pragma tabsize 0
Cуdigo
o warning й no return 0
Cуdigo
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[180];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(text[0] == '!')
{ for(new i=0; i < MAX_PLAYERS; i++)
{
if(Player[i][pFaccao] == 1)
{
format(string,sizeof(string),"[Chat Terceiro Comando da capital] %s (%d): %s", name,playerid, text[1]);
if(Player[i][pFaccao] == 1)
SendClientMessage(i,COR_AMARELO,string);
}
if(Player[i][pFaccao] == 2)
{
format(string,sizeof(string),"[Chat Comando Vermelho] %s (%d): %s", name,playerid, text[1]);
if(Player[i][pFaccao] == 2)
SendClientMessage(i,COR_ERRO,string);
}
}
return 0;
}
return 1;
}