[AJUDA]FS de fala postado por lucas_alemao
#1

Estou presisando de ajuda baixei esse FS https://sampforum.blast.hk/showthread.php?tid=312138 instalei tudo direitinho adicionei o fs no server.cfg coloquei na pasta filescript ( tenho as includes sscanf e zcmd )
quando execulto o comando /falar no jogo diz Este comando nгo existe digite /ajuda da umaaa ajudsaaa alguemmm aee
Reply
#2

tem o plugin sscanf ?
Reply
#3

tem sim sscanf.dll na pasta plugins
Reply
#4

Isto Talvez te Ajude '-' http://solidfiles.com/d/tq7J/
Reply
#5

Quote:
Originally Posted by kaiolpm
Посмотреть сообщение
Isto Talvez te Ajude '-' http://solidfiles.com/d/tq7J/
Pra que server e onde coloco?
Reply
#6

Coloca na pasta Includes do Pawno
eґ um pacote de includes
Reply
#7

naoo... no seu gm... tem a public OnPlayerCommandText... Na ultima chave dessa public tem isso:

return 0;
}

ou return 1;

Se tiver 1 coloque 0 e se tiver 0 coloque 1!!
Reply
#8

Nгo fucionou
Reply
#9

tente trocar seu code por esse:

pawn Код:
/*---------------------------------------------------------------------------------------
----------------------------------FS DE FALA---------------------------------------------
------------------------------BY LUCAS_ALEMAO--------------------------------------------
---------------------------------------------------------------------------------------*/




#include <a_samp>
#include <zcmd>
#include <sscanf2>

#define CINZA                   0xCECECEFF
#define AMARELO                 0xFFFF00FF
#define AZUL_CLARO              0x00C2ECFF

main()
{
    print("\n");
    print("FS de fala By Lucas_Alemao Carregado com sucesso!");
    print("\n");
}

new Str[100];
new Fala[128];
new Nome[MAX_PLAYER_NAME];
new ID;
public OnFilterScriptInit()
{
    return 1;
}
    CMD:falar(playerid, params[])
    {
        new Str2[30];
        if(sscanf(params, "s", Fala)) return SendClientMessage(playerid, CINZA, "Use /falar [texto]");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            format(Str, sizeof(Str), "http://translate.******.com/translate_tts?tl=pt&q=%s", Fala);
            PlayAudioStreamForPlayer(i, Str, 0, 0, 0, 0, 0);
        }
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(Str2, sizeof(Str2), "~h~~g~%s ~y~Falando", Nome);
        GameTextForAll(Str2, 1500, 1);
        return 1;
    }
    CMD:conversar(playerid, params[])
    {
        GetPlayerName(playerid, Nome, sizeof(Nome));
        new fStr[100];
        if(sscanf(params, "is", ID, Fala)) return SendClientMessage(playerid, CINZA, "Use /conversar [id] [texto]");
        if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, AMARELO, "Jogador Offline");
        if(ID == playerid) return SendClientMessage(playerid, AMARELO, "Vocк nгo pode conversar consigo mesmo!");
        format(Str, sizeof(Str), "http://translate.******.com/translate_tts?tl=pt&q=%s", Fala);
        PlayAudioStreamForPlayer(ID, Str, 0, 0, 0, 0, 0);
        PlayAudioStreamForPlayer(playerid, Str, 0, 0, 0, 0, 0);
        format(fStr, sizeof(fStr), "O jogador {1B91E0}%s[ID:%d]{00C2EC} estб conversando com vocк, use /conversar", Nome, playerid);
        SendClientMessage(ID, AZUL_CLARO, fStr);
        return 1;
    }
Reply
#10

Quote:
Originally Posted by Hiuship
Посмотреть сообщение
naoo... no seu gm... tem a public OnPlayerCommandText... Na ultima chave dessa public tem isso:

return 0;
}

ou return 1;

Se tiver 1 coloque 0 e se tiver 0 coloque 1!!
num tem n й pra colocar?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)