Hallo,
Selfmade.pwn(8654) : warning 213: tag mismatch
Selfmade.pwn(8654) : error 032: array index out of bounds (variable "enum_Config")
Selfmade.pwn(8655) : warning 213: tag mismatch
Selfmade.pwn(8655) : error 032: array index out of bounds (variable "enum_Config")
Selfmade.pwn(8656) : warning 213: tag mismatch
Selfmade.pwn(8656) : error 032: array index out of bounds (variable "enum_Config")
Selfmade.pwn(8657) : warning 213: tag mismatch
Selfmade.pwn(8657) : error 032: array index out of bounds (variable "enum_Config")
enum configInfo
{
MAX_TANKSTELLEN,
MAX_HAUS,
MAX_BIZ,
CARVOLL
};
new enum_Config[1][configInfo];
stock LoadConfig()
{
new string[100],var[256];
format(string, sizeof(string),"SELECT * FROM `config` WHERE `id` = '1'");
self_mysql_queryEx(string);
mysql_store_result();
mysql_get_field("MAX_TANKSTELLEN",var); enum_Config[0][MAX_TANKSTELLEN] = strval(var);//hier
mysql_get_field("MAX_HAUS",var); enum_Config[0][MAX_HAUS] = strval(var);//hier
mysql_get_field("MAX_BIZ",var); enum_Config[0][MAX_BIZ] = strval(var);//hier
mysql_get_field("CARVOLL",var); enum_Config[0][CARVOLL] = strval(var);//hier
mysql_free_result();
#if defined MAX_TANKSTELLEN
#undef MAX_TANKSTELLEN
#define MAX_TANKSTELLEN enum_Config[0][MAX_TANKSTELLEN]
#endif
#if defined MAX_HAUS
#undef MAX_HAUS
#define MAX_HAUS enum_Config[0][MAX_HAUS]
#endif
#if defined MAX_BIZ
#undef MAX_BIZ
#define MAX_BIZ enum_Config[0][MAX_BIZ]
#endif
#if defined CARVOLL
#undef CARVOLL
#define CARVOLL enum_Config[0][CARVOLL]
#endif
return 1;
}
Wo liegt mein Fehler?