Raised This Month: $ Target: $400
 0% 

Download the sounds if they do not have


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sutar
Senior Member
Join Date: Sep 2010
Old 05-10-2012 , 09:49   Download the sounds if they do not have
Reply With Quote #1

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?
Sutar is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode