Small help ASAP! - 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: Small help ASAP! (
/showthread.php?tid=351763)
Small help ASAP! -
Mr.1337 - 17.06.2012
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 "("
Re: Small help ASAP! -
tiernantheman - 17.06.2012
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;
}
Re: Small help ASAP! -
Mr.1337 - 17.06.2012
Thanks alot!