HeyHoo,
Ich habe folgendes gebastelt:
new random(7);
switch(random)
{
case 0:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: Benjie - Ich rauch mein Ganja den ganzen Tag");
SetTimer("StopStream",15000,0);
}
case 1:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: Dame - Pave Low");
SetTimer("StopStream",15000,0);
}
case 2:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: Laserkraft 3D - Nein Mann");
SetTimer("StopStream",15000,0);
}
case 3:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: LMFAO - I'm sexy and i know it");
SetTimer("StopStream",15000,0);
}
case 4:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: Tinie Tempah ft. Eric Turner - Written in the Stars");
SetTimer("StopStream",15000,0);
}
case 5:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: Y-Titty - Der letzte Sommer");
SetTimer("StopStream",15000,0);
}
case 6:
{
PlayAudioStreamForPlayer(playerid,"");
SendClientMessage(playerid,Weiss,"Joinsound: Xavier Naidoo - Was wir alleine nicht schaffen");
SetTimer("StopStream",15000,0);
}
}
Error:
C:\Users\_Zinne\Desktop\Spiele\SAMP Server\gamemodes\ProjektXv0.0.2.pwn(1575) : warning 219: local variable "random" shadows a variable at a preceding level
C:\Users\_Zinne\Desktop\Spiele\SAMP Server\gamemodes\ProjektXv0.0.2.pwn(1575) : error 001: expected token: ";", but found "("
C:\Users\_Zinne\Desktop\Spiele\SAMP Server\gamemodes\ProjektXv0.0.2.pwn(1575) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
in der Zeile:
new random(7);
bitte um Hilfe!
lg
Deagle