Raised This Month: $ Target: $400
 0% 

052 - multi-dimensional arrays must be fully initialized


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BlueGaming
BANNED
Join Date: Nov 2013
Old 01-04-2014 , 03:59   Re: 052 - multi-dimensional arrays must be fully initialized
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "No Player"
#define VERSION "1.0"
#define AUTHOR "Uncle Bob"
#define MAXNAMES 7

new nameList[MAXNAMES][] = 
{
"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

BlueGaming is offline
 



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