[Ajuda]Radio
#1

pawn Код:
CMD:r(playerid, params[])
{
    new texto[128], name[24], Cargo[128];
    if(PlayerInfo[playerid][PM] < 1) return SendClientMessage(playerid, VERMELHO, "Erro Voce nгo й da PM");
    if(sscanf(params, "s[128]", texto)) return SendClientMessage(playerid, -1, " Use /r [Texto]");
    if(PlayerInfo[playerid][PM] == 1) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 2) Cargo = "Cabo";
    if(PlayerInfo[playerid][PM] == 3) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 4) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 5) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 6) Cargo = "Capitгo";
    GetPlayerName(playerid, name, sizeof(name));
    format(texto, sizeof(texto),"(Radio)(%s): %s: %s ,Cвmbio",Cargo, name, texto);
    for(new i = 0; i<=MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][PM] > 0)
            {
                SendClientMessage(i, AZULVIP, texto);
            }
    }
    return 1;
}
Fiz este comando ele envia a mensagem, no entanto depois da msg ele retorna que o comando /r oq eu escrevi й invalido oque pode ser?
Reply
#2

Respondido via Msn obg Josma

+rep
Reply
#3

Quote:
Originally Posted by Digao
Посмотреть сообщение
@OFF

Josma voltou a mecher com pawn ? DDDDDDDDDDD
Nгo Digгo, sу dou uma visitada no fуrum de vez enquando e ajudo uns amigos quando posso. De resto to inativo. ^^

Quote:
Originally Posted by blacktrindade
Посмотреть сообщение
Respondido via Msn obg Josma

+rep
De nada. ^^
Reply
#4

a tahh, mais se fosse voltar ia ser muito bom '-'

mais blz tamu ai :P .... entra ts mst qnd der e.e
Reply
#5

pawn Код:
CMD:r(playerid, params[]) {
    new texto[128], name[24], Cargo[128];
    if(PlayerInfo[playerid][PM] < 1) return SendClientMessage(playerid, VERMELHO, "Erro Voce nгo й da PM");
    if(sscanf(params, "s[128]", texto)) return SendClientMessage(playerid, -1, " Use /r [Texto]");
    if(PlayerInfo[playerid][PM] == 1) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 2) Cargo = "Cabo";
    if(PlayerInfo[playerid][PM] == 3) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 4) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 5) Cargo = "Soldado";
    if(PlayerInfo[playerid][PM] == 6) Cargo = "Capitгo";
    GetPlayerName(playerid, name, sizeof(name));
    format(texto, sizeof(texto),"(Radio)(%s): %s: %s ,Cвmbio",Cargo, name, texto);
    for(new i; i != MAX_PLAYERS; ++i) if(IsPlayerConnected(i)) if(PlayerInfo[i][PM]) SendClientMessage(i, AZULVIP, texto);
    return 1;
}
@Edit

Nгo vi os posts acima!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)