Winamp script Troubles :(
Posted: Sat Jan 18, 2003 5:45 pm
Ok, Im writing a script that displays information from a winamp client. it all works except for one thing. I want to display the current track number. It displays a number, but the number displayed is one less than the current number... when its playing track 345 it displays 344.. this may be easy to fix but i cant figure it out.. sometimes its the little things that screw you over...
in one file i have the function ..
then its called in another file..
anyone know how i can add 1 to this number?.. oh.. btw.. im a noob at php.. if you didnt alreay figure out.
in one file i have the function ..
Code: Select all
function GetPlaylistPosition()
{
$res = httpQ("getlistpos", "");
return $resїcount($res)-1];
}Code: Select all
echo "<p>Current Postion: ".GetPlaylistPosition()."<br>";