Raised This Month: $ Target: $400
 0% 

052 - multi-dimensional arrays must be fully initialized


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jay7981
Junior Member
Join Date: Jan 2014
Old 01-04-2014 , 02:24   052 - multi-dimensional arrays must be fully initialized
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
}
public 
client_putinserver(id)
{
    new 
name[32]
    
get_user_info(id"name"name31)
    if(
containi(name,"Player")!=-1)
    {
        
set_user_info(id"name"nameList[random_num(0,MAXNAMES)])
    }
    return 
PLUGIN_HANDLED

jay7981 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 10:12.


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