AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Plugin Eror (https://forums.alliedmods.net/showthread.php?t=27620)

tm 04-25-2006 19:41

Plugin Eror
 
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

wonsae 04-25-2006 20:03

1 more }

v3x 04-25-2006 20:13

Next time you post: http://forums.alliedmods.net/showthread.php?t=26363


All times are GMT -4. The time now is 05:11.

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