Can you please tell what is wrong here, because i get an annoying message in my if statement:
Notice: Undefined offset: 1
The code:
$maxlvls[14] = array(0, 30, 25, 20, 15, 1, 20, 25, 30, 30, 30, 30, 30, 10, 20);
$lvle[14] = array(0, (int)$_GET['ratuszlvl'], (int)$_GET['koszarylvl'], (int)$_GET['stajnialvl'], (int)$_GET['warsztatlvl'], (int)$_GET['palaclvl'], (int)$_GET['kuznialvl'], (int)$_GET['ryneklvl'], (int)$_GET['tartaklvl'], (int)$_GET['cegielnialvl'], (int)$_GET['hutalvl'], (int)$_GET['zagrodalvl'], (int)$_GET['spichlerzlvl'], (int)$_GET['schoweklvl'], (int)$_GET['murlvl']);
if($lvle[1] <= $maxlvls[1] && $lvle[1] >= 0)
{
echo "smth";
}
$lvle[1]to come from, if you only assigned a value to$lvle[14]…?