[Ajuda] Include Zcmd e Sscanf
#10

Quote:
Originally Posted by Murilo_sousa
Посмотреть сообщение
Falae bruninho_step

O Cara que copiou meu Gm ... Serб que tem algo parecido entre seu code й o original da BCV ?

pawn Код:
CMD:sos(playerid, params[])
{
    new Texto[126], snd[MAX_PLAYER_NAME];
    GetPlayerName(playerid,snd,sizeof(snd));
    if(sscanf(params, "s[126]", Texto)) return SendClientMessage(playerid, VERMELHO_ESCURO, "[x] Use /Sos [Duvida]");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 0)
        {
            format(String, sizeof(String), "{FF0000}[ PEDIDO DE AJUDA ] {FFFF40}%s [%d] diz:{FFFFFF} %s", snd, playerid, Texto);
            GameTextForPlayer(i, "Pedido de ajuda ~n~recebido", 3000, 3);
            SendClientMessage(i, 0xEAEA00AA, String);
        }
    }
    SendClientMessage(playerid, VERMELHO_ESCURO, "[ » ]{949494} Pedido de Ajuda Enviado, espere algum Moderador / Administrador responder ...");
    return 1;
}
Prova do meu code:



Se liga:

http://creativecommons.org/licenses/by-nc-nd/3.0/br/
mais espera ae como ele teve acesso ao seu gm ?

notei a observar que ate o total de strings e igual.


#edit eu nao testei o codigo mais eu compilei assim e nao deu erro olha

pawn Код:
#define VERMELHO_ESCURO 0xFF0000AA

enum Info
{
    pAdmin
};


new PlayerInfo[MAX_PLAYERS][Info];

CMD:sos(playerid, params[])
{
    new String[128];
    new Texto[126], snd[MAX_PLAYER_NAME];
    GetPlayerName(playerid,snd,sizeof(snd));
    if(sscanf(params, "s[126]", Texto)) return SendClientMessage(playerid, VERMELHO_ESCURO, "[x] Use /sos [Dъvida aqui]");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 0)
        {
            format(String, sizeof(String), "{FA5282}[ HELP ] por %s [%d]: %s", snd, playerid, Texto);
            GameTextForPlayer(i, "~r~NOVATO PEDIU AJUDA!", 3000, 3);
            SendClientMessage(i, 0xEAEA00AA, String);
        }
    }
    SendClientMessage(playerid, VERMELHO_ESCURO, "[ > ] Pedido de ajuda enviado com sucesso!");
    return 1;
}
Reply


Messages In This Thread
Include Zcmd e Sscanf - by Lucas_Pawno - 26.09.2012, 02:02
Re: Include Zcmd e Sscanf - by Maklister - 26.09.2012, 02:08
Re: Include Zcmd e Sscanf - by [BOPE]Seu._.Madruga - 26.09.2012, 02:11
Re: Include Zcmd e Sscanf - by Lucas_Pawno - 26.09.2012, 02:11
Re: Include Zcmd e Sscanf - by Schocc - 26.09.2012, 02:15
Re: Include Zcmd e Sscanf - by Maklister - 26.09.2012, 02:20
Re: Include Zcmd e Sscanf - by Lucas_Pawno - 26.09.2012, 02:21
Re: Include Zcmd e Sscanf - by Schocc - 26.09.2012, 02:24
Re: Include Zcmd e Sscanf - by Maklister - 26.09.2012, 02:25
Re: Include Zcmd e Sscanf - by Q.I - 26.09.2012, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)