Small help ASAP!
#1

Well, I've scripted my own radio, and it worked. now I've scripted a command to stop the streaming, as I get errors while compiling, here's the code:

pawn Код:
CMD:station off(playerid, params[]);
{
StopAudioStreamForPlayer(playerid);
}

Errors:
pawn Код:
error 001: expected token: "(", but found "-identifier-"
 error 001: expected token: ";", but found "("
Reply
#2

Quote:
Originally Posted by Mr.1337
Посмотреть сообщение
Well, I've scripted my own radio, and it worked. now I've scripted a command to stop the streaming, as I get errors while compiling, here's the code:

pawn Код:
CMD:station off(playerid, params[]);
{
StopAudioStreamForPlayer(playerid);
}

Errors:
pawn Код:
error 001: expected token: "(", but found "-identifier-"
 error 001: expected token: ";", but found "("
Try this.
pawn Код:
CMD:stationoff(playerid, params[])
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Reply
#3

Thanks alot!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)