enum SI
{
MaxPing, // INDEX 0
MaxPacket, // INDEX 1
MinFPS // INDEX 2
};
new ServerInfo[SI];
ServerInfo[0] = value;
dir(863) : warning 213: tag mismatch
dir(863) : error 006: must be assigned to an array
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;
}
}
IDL = listitem;
IDL = strval(listitem);
ServidorInfo[IDL] = strval(inputtext);
Hi!
PHP код:
PHP код:
PHP код:
|
tag mismatch
Line: IDL = strval(listitem);
argument type mismatch (argument 1)
Line: ServerInfo[IDL] = strval(inputtext);
new IDL;
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_VALORCONFIG:
{
if(response)
{
ServidorInfo[IDL] = strval(inputtext);
}
}
Sorry, it should be like this:
PHP код:
|
tag mismatch
Line: ServidorInfo[IDL] = strval(inputtext);
ServidorInfo[IDL] = SI:strval(inputtext);
enum sI
{
MaxPing, // INDEX 0
MaxPacket, // INDEX 1
MinFPS // INDEX 2
};
new ServerInfo[sI];
ServerInfo[0] = value;
ServidorInfo[SI:0] = strval(inputtext);
ServidorInfo[MaxPing] = strval(inputtext);
case DIALOG_MENUSERVER:
{
if(response)
{
if(ConfigVal(listitem) == "0" || ConfigVal(listitem) == "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[SI:listitem] = inputtext;
}
}
Integers can't be directly used to specify which enum is being called since they can have different sizes.
Код:
ServidorInfo[SI:0] = strval(inputtext); Код:
ServidorInfo[MaxPing] = strval(inputtext); pawn Код:
|