Raised This Month: $ Target: $400
 0% 

Plugin Eror


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tm
Member
Join Date: Jun 2005
Old 04-25-2006 , 19:41   Plugin Eror
Reply With Quote #1

Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 
	{
	register_plugin("Server & Client Rate","1.0","Taher Ali")
	set_task(10.0,"consistency",0,"",0,"b")
	return   PLUGIN_CONTINUE
}

public consistency()
	{
	new all[32], all_num
	get_players(all,all_num)
	
	new srv_maxrate = get_cvar_num("sv_maxrate")
	new srv_minrate = get_cvar_num("sv_minrate")
	
	for (new i=0;i < all_num;i++) {
		if (get_user_flags(i) & ADMIN_IMMUNITY)
			{
			new s_client_rate[8]
			get_user_info(all[i],"rate",s_client_rate,7)
			new client_rate = str_to_num ( s_client_rate )
			
			if ( client_rate > srv_maxrate ) {
				client_cmd(all[i],"rate %d",srv_maxrate)
			}
			else if ( client_rate < srv_minrate ) {
				client_cmd(all[i],"rate %d",srv_minrate)
			}
			return PLUGIN_HANDLED
		}
Getting an eror it says :
"Expected "}" but found "end-file" on line 33"

i have "}" but idk wat is wrong
tm 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 05:11.


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