18.06.2016, 11:24
//inside cmd or callback
//note that callback should have the parameter "playerid" as we are going to pass to the timer
SetTimerEx("PlaySound",TIMEINMILISECS,false,"i",pl ayerid);
//NOT inside any cmd or callback
forward PlaySound(playerid);
public PlaySound(playerid)
{
PlayAudioStreamForPlayer(playerid,"******.com");
}
//note that callback should have the parameter "playerid" as we are going to pass to the timer
SetTimerEx("PlaySound",TIMEINMILISECS,false,"i",pl ayerid);
//NOT inside any cmd or callback
forward PlaySound(playerid);
public PlaySound(playerid)
{
PlayAudioStreamForPlayer(playerid,"******.com");
}