Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Rubin |
for x in players:
print(typeof(x), " ", x) # x is of type "object", not "int"
if players[x].id == player_id:
players[x].pos = pos
players[x].rot_y = rot_y
break
Hello! I’m trying to do a for loop on the array “players” but the variable “x” somehow is of type object.