[AJUDA] Sistema de Aviso por Voz.
#1

Ajuda ae, to usando o sistema do Lucas_Alemгo: https://sampforum.blast.hk/showthread.php?tid=312138
Com algumas ediзхes, e o mesmo estб assim:
pawn Код:
command(aviso, playerid, params[])
{
    new Fala[128];  new Nome[MAX_PLAYER_NAME];   new Str[30];
    if(sscanf(params, "s", Fala)) return SendClientMessage(playerid, SERVIDOR, "Use /aviso [Texto]");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        format(Str, sizeof(Str), "http://translate.******.com/translate_tts?tl=pt-BR&q=%s", Fala);
        PlayAudioStreamForPlayer(i, Str, 0, 0, 0, 0, 0);
    }
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(Str, sizeof(Str), "~h~~w~%s ~r~Falando", Nome);
    GameTextForAll(Str, 1500, 1);
    return 1;
}
Copilo sem erros, porem aparece uma mensagem no console:
Код:
Script[gamemodes/SERVIDOR.amx]: Run time error 19: "File or function is not found"
Copilaзгo sem erros, mais recebo essa mensagem, alguйm sabe que diabos й isso, e como eu resolvo ?

@EDIT Quase esqueci, quando eu testo o comando In-Game aparece aquela mensagem: [SERVER] Unknown Command
Reply
#2

Heelp
Reply
#3

server.log
Reply
#4

Код:
SA-MP Dedicated Server
----------------------
v0.3d-R2, ©2005-2011 SA-MP Team

[17:03:30] filterscripts = ""  (string)
[17:03:30] 
[17:03:30] Server Plugins
[17:03:30] --------------
[17:03:30]  Loading plugin: streamer
[17:03:30] 

*** Streamer Plugin v2.5.2 by Incognito loaded ***

[17:03:30]   Loaded.
[17:03:30]  Loaded 1 plugins.

[17:03:30] 
[17:03:30] Filterscripts
[17:03:30] ---------------
[17:03:30]   Loaded 0 filterscripts.

[17:03:30] Script[gamemodes/SERVIDOR.amx]: Run time error 19: "File or function is not found"
[17:03:30] Number of vehicle models: 0
[17:03:55] Incoming connection: 127.0.0.1:3987
[17:03:56] [join] Mr_Taxi has joined the server (0:127.0.0.1)
[17:52:49] --- Server Shutting Down.
[17:52:49] [part] Mr_Taxi has left the server (0:0)
[17:52:49] 

*** Streamer Plugin v2.5.2 by Incognito unloaded ***
Reply
#5

falta o plugin sscanf
Reply
#6

Код:
\Server SAMP\plugins\sscanf.dll
\Server SAMP\plugins\sscanf.so
Ja tenho \х
Reply
#7

Posta server.cfg ae =)
Reply
#8

Код:
echo Executing Server Config...
lanmode 0
rcon_password 123
maxplayers 1
port 7777
hostname Server do Mr_Taxi
gamemode0 SERVIDOR
filterscripts
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
plugins streamer sscanf
Reply
#9

Los... Postei e.e
Reply
#10

atualiza os plugins, estava dando isso cmg tb.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)