That made the test, and does not compile ...
writes:
Quote:
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// loadsound.sma
// D:\test\cstrike\addons\amxmodx\scripting\load sound.sma(29) :
error 088: number of arguments does not match definition
//
// 1 Error.
// Could not locate output file D:\Server\test_minimap1\cstrike\addons\amxmod x\scripting\compiled\loadsound.amx (compile failed).
//
// Compilation Time: 0,06 sec
// ----------------------------------------
Press enter to exit ...
|
I've highlighted the line 29
Code:
#include <amxmodx>
#define MaxSounds 2
new soundlist[MaxSounds][] =
{
"sound/loading/loading_1",
"sound/loading/loading_2"
}
public plugin_init()
{
register_plugin("Loading Sound", "1.5", "Sutar")
}
public client_connect(id)
{
client_cmd(id, "mp3 play %s", soundlist[random_num(1, MaxSounds)])
return PLUGIN_CONTINUE
}
public plugin_precache()
{
for(new i = 0; i < MaxSounds; i++)
{
if(!file_exists(soundlist[i]))
precache_sound("%s.mp3", soundlist[i])
}
return PLUGIN_CONTINUE
}
Why a mistake?