klin34970
10-05-2014, 07:36
decl String:bufferString[PLATFORM_MAX_PATH];
Format(bufferString, PLATFORM_MAX_PATH, "sound/%s", S_track_bomb_way_sound[max_map][max_direction][i]);
if(FileExists(bufferString,true))
{
AddToStringTable(FindStringTable("soundprecache"), S_track_bomb_way_sound[max_map][max_direction][i]);
AddFileToDownloadsTable(bufferString);
if(B_active_track_bomb_csgo_dev)
{
LogMessage("AddToStringTable: %s | AddFileToDownloadsTable: %s", S_track_bomb_way_sound[max_map][max_direction][i], bufferString);
}
}
Log :
AddToStringTable: elite-unit/track_bomb/prepare.mp3 | AddFileToDownloadsTable: sound/elite-unit/track_bomb/prepare.mp3
EmitSoundToClient(c, S_track_bomb_way[p][i][w],_,_,_,_,1.0);
I'm trying to play a sound on CSGO, but impossible to play and no error console/ingame.
Server is sendind the mp3 to client, I check folder and sound everything works.
Format(bufferString, PLATFORM_MAX_PATH, "sound/%s", S_track_bomb_way_sound[max_map][max_direction][i]);
if(FileExists(bufferString,true))
{
AddToStringTable(FindStringTable("soundprecache"), S_track_bomb_way_sound[max_map][max_direction][i]);
AddFileToDownloadsTable(bufferString);
if(B_active_track_bomb_csgo_dev)
{
LogMessage("AddToStringTable: %s | AddFileToDownloadsTable: %s", S_track_bomb_way_sound[max_map][max_direction][i], bufferString);
}
}
Log :
AddToStringTable: elite-unit/track_bomb/prepare.mp3 | AddFileToDownloadsTable: sound/elite-unit/track_bomb/prepare.mp3
EmitSoundToClient(c, S_track_bomb_way[p][i][w],_,_,_,_,1.0);
I'm trying to play a sound on CSGO, but impossible to play and no error console/ingame.
Server is sendind the mp3 to client, I check folder and sound everything works.