11.08.2012, 07:33
PHP код:
CMD:radio(playerid, params[])
{
new radio;
if (sscanf(params, "s", 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;
}
PHP код:
C:\Documents and Settings\user\Desktop\radio.pwn(10) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Desktop\radio.pwn(12) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\user\Desktop\radio.pwn(12) : warning 215: expression has no effect
C:\Documents and Settings\user\Desktop\radio.pwn(12) : error 001: expected token: ";", but found "-string-"
C:\Documents and Settings\user\Desktop\radio.pwn(12) : warning 215: expression has no effect
C:\Documents and Settings\user\Desktop\radio.pwn(12) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\user\Desktop\radio.pwn(12) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.