SA-MP Forums Archive
[AJUDA] Sistema de Aviso por Voz. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Sistema de Aviso por Voz. (/showthread.php?tid=325053)



[AJUDA] Sistema de Aviso por Voz. - Mr_Taxi - 11.03.2012

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


Re: [AJUDA] Sistema de Aviso por Voz. - Mr_Taxi - 12.03.2012

Heelp


Re: [AJUDA] Sistema de Aviso por Voz. - Lуs - 12.03.2012

server.log


Re: [AJUDA] Sistema de Aviso por Voz. - Mr_Taxi - 12.03.2012

Код:
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 ***



Re: [AJUDA] Sistema de Aviso por Voz. - Kmatsu - 12.03.2012

falta o plugin sscanf


Re: [AJUDA] Sistema de Aviso por Voz. - Mr_Taxi - 12.03.2012

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


Re: [AJUDA] Sistema de Aviso por Voz. - Lуs - 12.03.2012

Posta server.cfg ae =)


Re: [AJUDA] Sistema de Aviso por Voz. - Mr_Taxi - 12.03.2012

Код:
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



Re: [AJUDA] Sistema de Aviso por Voz. - Mr_Taxi - 12.03.2012

Los... Postei e.e


Re: [AJUDA] Sistema de Aviso por Voz. - [R] ousenber [K] - 12.03.2012

atualiza os plugins, estava dando isso cmg tb.