please help guys
#1

PHP код:
CMD:radio(playeridparams[])
{
    new 
radio;
     if (
sscanf(params"s"radio )) SendClientMessage(playeridCOLOR_RED"Usage: \"/radio <Link>");
    
SendClientMessage(playeridCOLOR_RED"TIP: 127.0.0.1:8000 ");
    else
    {
        
PlayAudioStreamForPlayer(playerid"http://"radio"/listen.pls");
    }
    return 
1;

This is errors


PHP код:
C:\Documents and Settings\user\Desktop\radio.pwn(10) : error 029invalid expressionassumed zero
C
:\Documents and Settings\user\Desktop\radio.pwn(12) : error 001expected token"-string end-"but found "-identifier-"
C:\Documents and Settings\user\Desktop\radio.pwn(12) : warning 215expression has no effect
C
:\Documents and Settings\user\Desktop\radio.pwn(12) : error 001expected token";"but found "-string-"
C:\Documents and Settings\user\Desktop\radio.pwn(12) : warning 215expression has no effect
C
:\Documents and Settings\user\Desktop\radio.pwn(12) : error 001expected token";"but found ")"
C:\Documents and Settings\user\Desktop\radio.pwn(12) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
5 Errors

im try to make command for random radio starting who can help me
Reply
#2

pawn Код:
if (sscanf(params, "s", radio )) return SendClientMessage(playerid, COLOR_RED, "Usage: \"/radio <Link>");
Reply
#3

pawn Код:
CMD:radio(playerid, params[])
{
    new radio[256];
    if (sscanf(params, "s[256]", radio )) SendClientMessage(playerid, COLOR_RED, "Usage:/radio <Link>");
    SendClientMessage(playerid, COLOR_RED, "TIP: 127.0.0.1:8000 ");
    else
    {
        PlayAudioStreamForPlayer(playerid, "http://radio/listen.pls");

    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
pawn Код:
if (sscanf(params, "s", radio )) return SendClientMessage(playerid, COLOR_RED, "Usage: \"/radio <Link>");
now i have error
PHP код:
C:\Documents and Settings\user\Desktop\radio.pwn(13) : error 035argument type mismatch (argument 2
Anyting here
PHP код:
        PlayAudioStreamForPlayer(playerid,radio); 
Reply
#5

pawn Код:
CMD:radio(playerid, params[])
{
    new radio[128];
    if (sscanf(params, "s[128]", radio ))
    {
        SendClientMessage(playerid, COLOR_RED, "Usage: /radio <Link>");
        SendClientMessage(playerid, COLOR_RED, "TIP: http://127.0.0.1:8000/listen.pls");
        return 1;
    }
    PlayAudioStreamForPlayer(playerid, radio);
    return 1;
}
Reply
#6

Quote:
Originally Posted by Cjgogo
Посмотреть сообщение
pawn Код:
CMD:radio(playerid, params[])
{
    new radio[256];
    if (sscanf(params, "s[256]", radio )) SendClientMessage(playerid, COLOR_RED, "Usage:/radio <Link>");
    SendClientMessage(playerid, COLOR_RED, "TIP: 127.0.0.1:8000 ");
    else
    {
        PlayAudioStreamForPlayer(playerid, "http://radio/listen.pls");

    }
    return 1;
}
Hey man do not work why ? see the picture
then i press command
/sradio 127.0.0.1:8000
show me
Usage:/radio <IP> | 127.0.0.1:8000
the TIP why do not audio stream ?
Reply
#7

Try:

Код:
new Text:radio[256];
Reply
#8

Quote:
Originally Posted by IceMeteor
Посмотреть сообщение
pawn Код:
CMD:radio(playerid, params[])
{
    new radio[128];
    if (sscanf(params, "s[128]", radio ))
    {
        SendClientMessage(playerid, COLOR_RED, "Usage: /radio <Link>");
        SendClientMessage(playerid, COLOR_RED, "TIP: http://127.0.0.1:8000/listen.pls");
        return 1;
    }
    PlayAudioStreamForPlayer(playerid, radio);
    return 1;
}
Again do not work why ?
see picture
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)