02.03.2017, 15:34
Postebin:http://pastebin.com/tfnq2tNE
C:\Users\MiniMundos\Desktop\Servidor\filterscripts\Voices.pwn(20) : error 030: compound statement not closed at the end of file (started at line 14) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define vermelho 0xFF0000AA
CMD:voice(playerid, params[])
{
new Texto[200],stringtexto[300];
if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, vermelho, "[ERRO]: /voice [Text]");
new Float:PosX, Float:PosY, Float:PosZ;
GetPlayerPos(playerid, PosX, PosY, PosZ);
for(new i; i < MAX_PLAYERS; ++i){if(IsPlayerConnected(i)) if(IsPlayerInRangeOfPoint(i, 30.0, PosX, PosY, PosZ))
{
format(stringtexto, sizeof(stringtexto), "https://translate.******.com/translate_tts?ie=UTF-8&q= %s &tl=pt-TW&client=tw-ob",Texto);
PlayAudioStreamForPlayer(i, stringtexto);
PlayerPlaySound(i,1057,0.0,0.0,0.0);
}
Code:
C:\Users\MiniMundos\Desktop\Servidor\filterscripts\Voices.pwn(20) : error 030: compound statement not closed at the end of file (started at line 14) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. PHP Code:
|
C:\Users\MiniMundos\Desktop\Servidor\filterscripts\Voices.pwn(21) : warning 217: loose indentation C:\Users\MiniMundos\Desktop\Servidor\filterscripts\Voices.pwn(23) : error 030: compound statement not closed at the end of file (started at line 15) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define vermelho 0xFF0000AA
CMD:voice(playerid, params[])
{
new Texto[200],stringtexto[300];
if(sscanf(params, "s", Texto)) return SendClientMessage(playerid, vermelho, "[ERRO]: /voice [Text]");
new Float:PosX, Float:PosY, Float:PosZ;
GetPlayerPos(playerid, PosX, PosY, PosZ);
for(new i; i < MAX_PLAYERS; ++i){if(IsPlayerConnected(i)){if(IsPlayerInRangeOfPoint(i, 30.0, PosX, PosY, PosZ))
{
format(stringtexto, sizeof(stringtexto), "https://translate.******.com/translate_tts?ie=UTF-8&q= %s &tl=pt-TW&client=tw-ob",Texto);
PlayAudioStreamForPlayer(i, stringtexto);
PlayerPlaySound(i,1057,0.0,0.0,0.0);
}
return 1;
}
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#define vermelho 0xFF0000AA
CMD:voice(playerid, params[])
{
new Texto[200],
stringtexto[300];
if (sscanf(params, "s", Texto)) return SendClientMessage(playerid, vermelho, "[ERRO]: /voice [Text]");{
new Float:PosX,
Float:PosY,
Float:PosZ;
GetPlayerPos(playerid, PosX, PosY, PosZ);
for (new i;i<MAX_PLAYERS;++i){
if (IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, 30.0, PosX, PosY, PosZ)){
format(stringtexto, sizeof(stringtexto), "https://translate.******.com/translate_tts?ie=UTF-8&q= %s &tl=pt-TW&client=tw-ob",Texto);
PlayAudioStreamForPlayer(i, stringtexto);
PlayerPlaySound(i,1057,0.0,0.0,0.0);
}
}
}
return 1;
}
PHP Code:
|