[Ajuda] Bug no comando ajuda ai plz !
#6

Olhe a tabela do SSCANF:
iInteradores(nъmeros somente)
s[size]Strings, textos(use s[tamanho_string])
uPlayer Nome ou Id

Aqui:
pawn Код:
command(calar, playerid, params[])
{
    new
        Jogadorid,
        Motivo[50]
    ;

    if(sscanf(params, "is[50]", Jogadorid, Motivo)) // Note que "s[50]" й o mesmo tamanho da declaraзгo (new Motivo[50]).
        return SendClientMessage(playerid,-1,"Uso Correto: /calar [ID de Jogador(a)] [Motivo]");
       
    if(!IsPlayerConnected(Jogadorid))
        return SendClientMessage(playerid,-1,"Jogador(a) nгo connectado!");
       

    new
        Nome[MAX_PLAYER_NAME],
        Nome2[MAX_PLAYER_NAME],
        string[128]
    ;
   
    GetPlayerName(playerid, Nome, sizeof(Nome));
    GetPlayerName(Jogadorid, Nome2, sizeof(Nome2));
   
    PlayerInfo[Jogadorid][pCalado] = 1;
   
    format(string, sizeof(string)," O Administrador(a) %s calou o Jogador(a) %s, Motivo:%s",Nome, Nome2, Motivo);
   
    SendClientMessageToAll(-1,string);
    return 1;
}
Reply


Messages In This Thread
Bug no comando ajuda ai plz ! - by Thung_. - 30.10.2012, 02:21
Re: Bug no comando ajuda ai plz ! - by Ouro - 30.10.2012, 02:23
Re: Bug no comando ajuda ai plz ! - by Thung_. - 30.10.2012, 02:29
Re: Bug no comando ajuda ai plz ! - by Ouro - 30.10.2012, 02:31
Re: Bug no comando ajuda ai plz ! - by Thung_. - 30.10.2012, 02:36
Re: Bug no comando ajuda ai plz ! - by zSuYaNw - 30.10.2012, 02:39
Re: Bug no comando ajuda ai plz ! - by Ouro - 30.10.2012, 02:42
Re: Bug no comando ajuda ai plz ! - by Thung_. - 30.10.2012, 02:45
Re: Bug no comando ajuda ai plz ! - by zSuYaNw - 30.10.2012, 02:47
Re: Bug no comando ajuda ai plz ! - by Thung_. - 30.10.2012, 02:47

Forum Jump:


Users browsing this thread: 2 Guest(s)