[Ajuda] [ERRO]
#1

Bom Criei um Comando com zcmd e sscanf

pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>

new texto;
new nome[MAX_PLAYER_NAME];
new Str[128];
new id;

CMD:mp(playerid, params[])
{
    if(sscanf(params, "us",id,texto))
    {
        SendClientMessage(playerid,-1,"Use: /mp [id] [texto]");
    }
    else
    {
        if(IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Este jogador nгo estб conectado");
        format(Str, sizeof(Str), "Mensagem Privada de %s: %s", nome, texto);
        SendClientMessage(id,-1,Str);
    }
    return true;
}

Quando digito /mp, retorna "Comando Invбlido"
Reply


Messages In This Thread
[ERRO] - by Equipe - 03.02.2013, 17:44
Re: [ERRO] - by Gii - 03.02.2013, 17:47
Re: [ERRO] - by Falcon. - 03.02.2013, 17:53
Re: [ERRO] - by Equipe - 03.02.2013, 18:04
Re: [ERRO] - by tonisantolia - 03.02.2013, 21:07
Re: [ERRO] - by HardWar - 04.02.2013, 00:22

Forum Jump:


Users browsing this thread: 1 Guest(s)