TTS Script compiles perfectly ,but didn't work in-game :'(
#1

I want all the players in range of a player will hear what he said.
Quote:

// This is a comment
// uncomment the line below if you want to write a filterscript
//define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" fs");
print("--------------------------------------\n");
return 1;
}

public OnPlayerText(playerid, text[])
{
if IsPlayerInRangeOfPoint(playerid, 7.0, 1,1,1)
*then
new pText[144];
format(pText, sizeof (pText), "(%d) %s", playerid, text);
PlayAudioStreamForPlayer(playerid,"http://soundoftext.com/static/sounds/en/%s.mp3",1,1,1,7.0,1);
}
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" fs");
print("----------------------------------\n");
}

#endif

Reply


Messages In This Thread
TTS Script compiles perfectly ,but didn't work in-game :'( - by Youssefree - 04.07.2016, 16:57
Re: TTS Script compiles perfectly ,but didn't work in-game :'( - by Runn3R - 04.07.2016, 17:24
Re: TTS Script compiles perfectly ,but didn't work in-game :'( - by d1git - 04.07.2016, 17:31
Re: TTS Script compiles perfectly ,but didn't work in-game :'( - by Youssefree - 04.07.2016, 18:03

Forum Jump:


Users browsing this thread: 1 Guest(s)