Raised This Month: $ Target: $400
 0% 

Plugin Eror


Post New Thread Reply   
 
Thread Tools Display Modes
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
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-25-2006 , 20:03  
Reply With Quote #2

1 more }
wonsae is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-25-2006 , 20:13  
Reply With Quote #3

Next time you post: http://forums.alliedmods.net/showthread.php?t=26363
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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