Raised This Month: $ Target: $400
 0% 

Error Array dimensions !!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kakarotto
Senior Member
Join Date: Apr 2014
Old 01-11-2015 , 15:49   Error Array dimensions !!
Reply With Quote #1

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_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
}
public 
client_connect(id)
{
new 
szIp[22]
get_user_ip(idszIpcharsmax(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(idg_ip[id], 33,1)
}
public 
client_disconnect(id)
{
g_ip[id][0]=0

__________________
BANNED !!
Kakarotto is offline
 


Thread Tools
Display Modes

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 15:30.


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