[Ajuda] Chat - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Chat (
/showthread.php?tid=361877)
Chat -
denis15711 - 22.07.2012
Eae tipow o chat esta bugado quando escreve aparece a msg para ele mais para os outros menbros da torcida nao aparece pq sera cуdigo:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
if(PlayerInfo[playerid][pTorcida] == 1)
{
new Nome[24], String[128];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "[Chat Gaviхes da Fiel] %s : %s", Nome, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(VarTorcida[i] == Torcida[i])
{
SendClientMessage(i, COLOR_TVP, String);
return 0;
}
}
}
}
return 1;
}
Alguem me ajuda ae por favor
Re: Chat -
Victor' - 22.07.2012
Tente:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(VarTorcida[playerid] != Torcida[i]) continue;
SendClientMessage(i, COLOR_TVP, String);
return 0;
}
Re: Chat -
denis15711 - 22.07.2012
Nгo deu certo vey alguem poderia me ajudar ae pf