Scripting/Server/Functions/GetRadioStationCount

(v0.4-beta+) Custom radio stations: every folder of Radio/ next to the server is a station named like the folder, its .mp3 files are the songs. Station numbers are RADIO_CUSTOM + n (100, 101, ...); GetRadioStationName accepts n or RADIO_CUSTOM + n and returns null for an unknown station.

Syntax

GetRadioStationCount()
GetRadioStationName(station)

Arguments

Returns

integer / string

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "getradiostationcount" )
	{
		local result = GetRadioStationCount();
		MessagePlayer( "GetRadioStationCount returned: " + result, player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Creating world entities

Categories: Server functions | Creating world entities