Ich habe das mal so gemacht:
Code
ocmd:clubtime(playerid,params[])
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.clubtime.fm/dsl.pls");
SendClientMessage(playerid,0x00FFFAFF,"Du hast ClubTime.FM eingeschaltet! Um es auszuschalten gib ein /stopradio");
return 1;
}
ocmd:Technobase(playerid,params[])
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/tunein-dsl-pls");
SendClientMessage(playerid,0x00FFFAFF,"Du hast Technobase.FM eingeschaltet! Um es auszuschalten gib ein /stopradio");
return 1;
}
ocmd:Houstime(playerid,params[])
{
PlayerPlaySound(playerid,1056,0.0,0.0,0.0);
PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/tunein-dsl-pls");
SendClientMessage(playerid,0x00FFFAFF,"Du hast Housetime.FM eingeschaltet! Um es auszuschalten gib ein /stopradio");
return 1;
}
Alles anzeigen
Aber ich bekomme errors:
Code
C:\Users\Janni\Desktop\samp03dsvr_RC1_win32\gamemodes\NRGR.pwn(1491) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Janni\Desktop\samp03dsvr_RC1_win32\gamemodes\NRGR.pwn(1498) : error 017: undefined symbol "PlayAudioStreamForPlayer"
C:\Users\Janni\Desktop\samp03dsvr_RC1_win32\gamemodes\NRGR.pwn(1505) : error 017: undefined symbol "PlayAudioStreamForPlayer"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.