CommandHelper

CommandHelper

46.5k Downloads

foreach() crashes with normal array if one of the elements is a number

LadyCailinBot opened this issue ยท 0 comments

commented

CMDHELPER-3045 - Reported by wouter.ligt

for example:
foreach(get_offline_players(),@player) { }
If one of the players name is only numbers it crashes with the error that the index at (that players name) does not exist.

I'm sorry but i don't have a stack trace available atm because i removed that players info, but i can reproduce the error if wanted