Help music.
#1

new string[260];
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/mjqzbmqt0m/Kontrafakt---JBMNT-prod-Maiky-Beatz.mp3");
format(string,sizeof(string),"{FF0000}[FP] ADMIN %s ON Music Kontrafakt JBMNT",GetName(playerid));
SendClientMessageToAll(0xFFFF00C8,string);
return 1;
}

error : declaration of a local variable must appear in a compound block
line : new string[260];
Reply
#2

pawn Код:
new string[260];
for(new i; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        PlayAudioStreamForPlayer(i,"http://k003.kiwi6.com/hotlink/mjqzbmqt0m/Kontrafakt---JBMNT-prod-Maiky-Beatz.mp3");
        format(string,sizeof(string),"{FF0000}[FP] ADMIN %s ON Music Kontrafakt JBMNT",GetName(playerid));
        SendClientMessageToAll(0xFFFF00C8,string);
    }
}
Reply
#3

willsuckformoney, that will flood messages, his current code is fine.

Show the lines above.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)