25.03.2016, 21:54
Integers can't be directly used to specify which enum is being called since they can have different sizes.
Is actually:
And your code is wrong, this is how you should do it:
Код:
ServidorInfo[SI:0] = strval(inputtext);
Код:
ServidorInfo[MaxPing] = strval(inputtext);
pawn Код:
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;
}
}