SA-MP Forums Archive
Problem with audiostream - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with audiostream (/showthread.php?tid=556662)



Problem with audiostream - weedxd - 11.01.2015

So basicly i havent found anything wrong here but pawno says that there is somthing wrong...

PHP код:
{
    new 
string[128];
    
format(string,sizeof(string), "http://translate.******.com/translate_tts?q=%s has connected to the server"RPN(playerid));
    foreach(
Playeri)
    {
        if(
JoinMessages[i])
        {
This>>>            PlayAudioStreamForPlayer()PlayAudioStreamForPlayer(istring);
        }
    } 
PHP код:
C:\Users\WeeD\Desktop\SAMP\gamemodes\HTLS-RP.pwn(4265) : warning 202number of arguments does not match definition
C
:\Users\WeeD\Desktop\SAMP\gamemodes\HTLS-RP.pwn(4265) : warning 202number of arguments does not match definition
C
:\Users\WeeD\Desktop\SAMP\gamemodes\HTLS-RP.pwn(4265) : error 001expected token";"but found "-identifier-"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 



Re: Problem with audiostream - CalvinC - 11.01.2015

Why do you have 2 stacked up against eachother? Cant you just replace this
pawn Код:
PlayAudioStreamForPlayer()PlayAudioStreamForPlayer(i, string);
With
pawn Код:
PlayAudioStreamForPlayer(i, string);



Re: Problem with audiostream - fatlirmorina - 11.01.2015

Код:
PlayAudioStreamForPlayer(i, "http://translate.******.com/translate_tts?q=%s has connected to the server");