Guys i am looking for someone to fix this plugin for me so when i compile it i get this error :
Error: Array dimensions do not match on line 21
can someone fix it plz !
PHP Code:
#include <amxmodx>
#define PLUGIN_NAME "One IP only"
#define PLUGIN_AUTHOR "IDK"
#define PLUGIN_VERSION "1.0"
#define MAXPLAYERS 32
new g_ip[33][33]
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
}
public client_connect(id)
{
new szIp[22]
get_user_ip(id, szIp, charsmax(szIp),1)
for(new i;i<MAXPLAYERS;i++)
{
if(equal(szIp,g_ip))
{
new userid = get_user_userid(id)
server_cmd("kick #%d ^"Go away faggot^"", userid)
}
}
get_user_ip(id, g_ip[id], 33,1)
}
public client_disconnect(id)
{
g_ip[id][0]=0
}
__________________