Browse Source

Updated with active song count support

Example to show how to utilize active song count
nosoop 8 years ago
parent
commit
fc918d24d7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      scripting/round_end_music_sample_provider.sp

+ 3 - 3
scripting/round_end_music_sample_provider.sp

@@ -9,7 +9,7 @@
 #pragma newdecls required
 #include <round_end_music>
 
-#define PLUGIN_VERSION "0.0.1"
+#define PLUGIN_VERSION "0.1.0"
 public Plugin myinfo = {
     name = "Round End Music: Sample Source",
     author = "nosoop",
@@ -32,12 +32,12 @@ public void HardcodedArrayMusicSource() {
 		MusicEntry entry = GenerateSong(SONGS[i][0], SONGS[i][1], SONGS[i][2]);
 		
 		if (!REM_AddSong(entry)) {
-			PrintToServer("[rem-sample] Song %s is already queued.", SONGS[i][2]);
+			PrintToServer("[rem-sample] Song %s could not be queued.", SONGS[i][2]);
 		}
 		delete entry;
 	}
 	
-	PrintToServer("Songs requested");
+	PrintToServer("[rem-sample] %d songs requested", REM_GetActiveSongCount());
 }
 
 MusicEntry GenerateSong(const char[] title, const char[] source, const char[] filePath) {