[Ajuda] Team Chat
#4

Quote:
Originally Posted by TheGarfield
Посмотреть сообщение
usas assim:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if( (text[0] == '#' || text[0] == '@') && strlen(text) > 1)
    {
        static str[128];
        new szPlayerName[MAX_PLAYER_NAME];
        if(gTeam(playerid) == TEAM_GREEN)
        {
            format(str, 128, "[Green Team Chat]» O jogador %s: %s", szPlayerName, text[1]);

            for(new iPlayerID; iPlayerID < MAX_PLAYERS; iPlayerID++)
            {
                if(IsPlayerConnected(iPlayerID))
                {
                    if(gTeam[iPlayerID] == TEAM_GREEN)
                    {
                        SendClientMessage(iPlayerID, 0x0080C0AA, str);
                    }
                }
            }
        }

        return 0;
    }

    return 0;
}
continue and break sгo aconselhбveis usar em loop.
Agora deu esses erros aqui:
pawn Код:
I:\0.3c\0.3c\samp03csvr_win32\gamemodes\rivershell.pwn(426) : error: 012: invalid function call, not a valid address
I:\0.3c\0.3c\samp03csvr_win32\gamemodes\rivershell.pwn(426) : warning: 215: expression has no effect
I:\0.3c\0.3c\samp03csvr_win32\gamemodes\rivershell.pwn(426) : error: 001: expected token: ";", but found ")"
I:\0.3c\0.3c\samp03csvr_win32\gamemodes\rivershell.pwn(426) : error: 029: invalid expression, assumed zero
I:\0.3c\0.3c\samp03csvr_win32\gamemodes\rivershell.pwn(426) : error fatal: 107: too many error messages on one line
Nessa linha:
pawn Код:
if(gTeam(playerid) == TEAM_GREEN)
Reply


Messages In This Thread
[Ajuda] Team Chat - by Wendell_. - 16.05.2011, 18:34
Re: [Ajuda] Team Chat - by TheGarfield - 16.05.2011, 18:46
Re: [Ajuda] Team Chat - by RockFire - 16.05.2011, 18:50
Re: [Ajuda] Team Chat - by Wendell_. - 16.05.2011, 18:51
Re: [Ajuda] Team Chat - by TheGarfield - 16.05.2011, 18:53
Re: [Ajuda] Team Chat - by Wendell_. - 16.05.2011, 18:55
Re: [Ajuda] Team Chat - by RockFire - 16.05.2011, 18:57
Re: [Ajuda] Team Chat - by Wendell_. - 16.05.2011, 19:02
Re: [Ajuda] Team Chat - by TheGarfield - 16.05.2011, 19:02
Re: [Ajuda] Team Chat - by RockFire - 16.05.2011, 19:04

Forum Jump:


Users browsing this thread: 2 Guest(s)