You can't do
PHP Code:
new g_Class[33][Class]
and use it with
This is the final code:
PHP Code:
#include <amxmodx>
#define PLUGIN "asdasd"
#define VERSION "1.0"
#define AUTHOR "asdasd"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "p_Spawn", 1);
}
enum _:Class {
nc_regenerator,
nc_tank,
nc_hunter,
nc_hulk
}
new g_Class[33];
public p_Spawn(id)
{
if(!is_user_connected(id) || !is_user_alive(id))
return 1;
// if method
if(g_Class[id] == nc_regenerator)
{
client_print(0, print_chat, "TEST")
}
// switch method
switch(g_Class[id])
{
case nc_regenerator:
{
}
case nc_tank:
{
}
case nc_hunter:
{
}
case nc_hulk:
{
}
}
return PLUGIN_CONTINUE
}
Thanks Black Rose for the help
Sorry for late answer.
EDIT: Added spawn function
__________________