SA-MP Forums Archive
Audio Plugin Help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Audio Plugin Help (/showthread.php?tid=256865)



Audio Plugin Help - PCheriyan007 - 22.05.2011

I'm trying to make a command (/currentsong) that will show the current track playing on a radio station.

The code....
pawn Code:
CMD:currentsong(playerid, params[], track[])
{
    new string[128];
    format(string, sizeof(string), "Now Playing: {FF9900}%s", track);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    return 1;
}
When I type /currentsong it will show some strange number instead of the track name.