25.03.2016, 18:16
Hi, I wanted to ask you a question.
Wanted to know if the enum have indices bone to not call them by how we declare it, but by a number.
Example:
now I tried to do so, but throws me the following errors:
This is my code:
Thakns, and sorry for my bad english.
Wanted to know if the enum have indices bone to not call them by how we declare it, but by a number.
Example:
pawn Код:
enum SI
{
MaxPing, // INDEX 0
MaxPacket, // INDEX 1
MinFPS // INDEX 2
};
new ServerInfo[SI];
ServerInfo[0] = value;
pawn Код:
dir(863) : warning 213: tag mismatch
dir(863) : error 006: must be assigned to an array
This is my code:
pawn Код:
case DIALOG_MENUSERVER:
{
if(response)
{
IDL = listitem;
if(ConfigVal(IDL) == "0" || ConfigVal(IDL) == "1")
{
new params[1];
cmd_configmenu(playerid,params);
}
else
{
ShowPlayerDialog(playerid,DIALOG_VALORCONFIG,DIALOG_STYLE_INPUT,"Config","Insert new value:","Accept","Exit");
}
}
}
case DIALOG_VALOROONFIG:
{
if(response)
{
ServidorInfo[IDL] = inputtext;
}
}