14.04.2017, 09:56
This code is correct.
Can you show me which line gives you the error?
Код:
forward SwitchNewSound(); public SwitchNewSound() { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInAnyVehicle(i)) { StopAudioStreamForPlayer(i); PlayAudioStreamForPlayer(i, RandomSongs[random(sizeof(RandomSongs))]); URLNumber++; if(URLNumber == sizeof(RandomSongs)) URLNumber = 0; } } return 1; }