13.06.2016, 15:29
You're not showing us any warnings, but they're probably being caused by
Because you're using integers with the cases.
Use
Код:
switch(listitem)
Use
Код:
switch (strval(listitem))