Hey all,
i have tried to compile this on and offline and keep getting this error ...
Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Error: Multi-dimensional arrays must be fully initialized on line 18
1 Error.
Could not locate output file C:\Users\Joe\Documents\Jay\AMX Stuff\namechanger.amx (compile failed).
|
I cannot find the error in this code for the life of me.. any help would be appreciated.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "No Player"
#define VERSION "1.0"
#define AUTHOR "Uncle Bob"
#define MAXNAMES 7
new nameList[MAXNAMES+1][] =
{
"Noobalator",
"Sir Killalot",
"Sneaking Tiger",
"Speedy Gonzales",
"Crash Test Dummy",
"Lameguy",
"Super Trooper"
}
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
new name[32]
get_user_info(id, "name", name, 31)
if(containi(name,"Player")!=-1)
{
set_user_info(id, "name", nameList[random_num(0,MAXNAMES)])
}
return PLUGIN_HANDLED
}