Hello,
Turn off my server with the reason:
Code:
FATAL ERROR (shutting down): Host_Error: PF_precache_generic_I: Bad string 'name'
FATAL ERROR (shutting down): Host_Error: PF_precache_generic_I: Bad string
The code looks like this:
Code:
new szFile[127], szStringFile[100][256];
public plugin_precache() {
format(szFile, 126, "addons/amxmodx/configs/roundsound.ini");
new fHandle = fopen(szFile, "rt");
if(!fHandle) return 0;
new szBuffer[256], pos[256], iLines;
while(!feof(fHandle)) {
fgets(fHandle, szBuffer, 255);
if(szBuffer[0] == ';') continue;
szStringFile[iLines++] = szBuffer;
}
fclose(fHandle);
for(new i; i < iLines; i++) {
parse(szStringFile[i], pos, 255);
precache_generic(pos);
}
return 0;
}
roundsound.ini file looks like this:
Code:
"sound/topmasters_fun/3.mp3" "Mega Dance - A ja wole Coca-Cole" "15"
"sound/topmasters_fun/4.mp3" "Benny G. And BBX - Feel It Way Down (TAITO Remix)" "16"
"sound/topmasters_fun/5.mp3" "DJ Trademark - Hard To Stop (Vicetone x Ne-Yo x Daft Punk)" "16"