SA-MP Forums Archive
[DUV] Gang 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: [DUV] Gang chat (/showthread.php?tid=136287)



[DUV] Gang chat - Bruno da Silva - 24.03.2010

Seguintes Erros:
Quote:

D:\[YK]Tournament Clan\gamemodes\lsw.pwn(325) : error 017: undefined symbol "gTeam"
D:\[YK]Tournament Clan\gamemodes\lsw.pwn(325) : warning 215: expression has no effect
D:\[YK]Tournament Clan\gamemodes\lsw.pwn(325) : error 001: expected token: ";", but found "]"
D:\[YK]Tournament Clan\gamemodes\lsw.pwn(325) : error 029: invalid expression, assumed zero
D:\[YK]Tournament Clan\gamemodes\lsw.pwn(325) : fatal error 107: too many error messages on one line

Todos na Linha 325 Aqui
Quote:

public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new pname[MAX_PLAYER_NAME], string[128];

GetPlayerName(playerid, pname, sizeof pname);
strdel(string, 0, 1);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(gTeam[playerid] == gTeam[i])
{
format(string, sizeof string, "[TIME] %s: %s", pname, string);
SendClientMessage(i, 0xFFF000AA, string);
}
}
return 0;
}
return 1;

O que fiz de errado? Sou Meio novato sabem?



Re: [DUV] Gang chat - andmeida10 - 24.03.2010

eu tou com mesmo problema... mt foda.... Nгo sei definir cargos, lider, etc...


Re: [DUV] Gang chat - Guilherme_Canani - 24.03.2010

Adiciona no topo do gm

static gTeam[MAX_PLAYERS];


Re: [DUV] Gang chat - Bruno da Silva - 24.03.2010

valeu Cara deu certo
Te devo uma.....


Re: [DUV] Gang chat - Bruno da Silva - 24.03.2010

Ixxi cara fui testar e deu erro Quando fala ! MSG aparece [TIME] brunosilva:
porem nao aparece o texto!!