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

Код:
public OnPlayerText(playerid, text[]) {
    new pText[144], Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z);
    format(pText, sizeof (pText), "http://soundoftext.com/static/sounds/en/%s.mp3", text);
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerInRangeOfPoint(i, 7.0, x, y, z) {
            PlayAudioStreamForPlayer(i, pText, x, y, z, 7.0, 1);
        }
    }
    return 1;
}
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)