AzaZPPL
03-03-2016, 04:47
I've been trying to figure this one out without any luck.
#define MAX_RADIO 512
enum RadioOptions
{
Radio_Volume,
Char:Radio_Url[MAX_RADIO],
bool:Radio_Active,
}
g_client[MAXPLAYERS + 1][RadioOptions];
public void OnClientPutInServer(int client)
{
g_client[client][Radio_Volume] = 20;
g_client[client][Radio_Url] = "";
g_client[client][Radio_Active] = false;
}
My first question is why does it throw errors if I try to create an enum like this:
enum RadioOptions
{
Radio_Volume,
char Radio_Url[MAX_RADIO],
bool Radio_Active,
}
My second question is why does this:
g_client[client][Radio_Url] = "";
Generate this error:
error 047: array sizes do not match, or destination array is too small
#define MAX_RADIO 512
enum RadioOptions
{
Radio_Volume,
Char:Radio_Url[MAX_RADIO],
bool:Radio_Active,
}
g_client[MAXPLAYERS + 1][RadioOptions];
public void OnClientPutInServer(int client)
{
g_client[client][Radio_Volume] = 20;
g_client[client][Radio_Url] = "";
g_client[client][Radio_Active] = false;
}
My first question is why does it throw errors if I try to create an enum like this:
enum RadioOptions
{
Radio_Volume,
char Radio_Url[MAX_RADIO],
bool Radio_Active,
}
My second question is why does this:
g_client[client][Radio_Url] = "";
Generate this error:
error 047: array sizes do not match, or destination array is too small