array bug pro

  1. FoufaDjo

    GMS 2 help with changing array

    i want to go back to the previous selectrang but i got iligal use array error att selecting += (dkey-ukey); and idk what to do creat event: sl = 0; selectrang1[0] = 0; selectrang1[1] = 4; selectrang2[0] = 3; selectrang2[1] = 5; selecting = 0; step event: ukey = keyboard_check_pressed(vk_up)...
  2. M

    Legacy GM [SOLVED] Trouble With Array

    I am trying to make a main menu using an array in Game Maker, and am using the following code to initialize it in the "Create" event. For the life of me I cannot figure out why it isn't working. I am getting the error: Error at line 1 pos 5: Assignment operator expected. So apparently the...
  3. SiR2104

    GML Issue with arrays

    Hello, very strange bug! I dont know whats wrong( Code: w = 22; h = 22; grid = []; var rm; for (var i = 0; i<w; i++) { for (var j = 0; j<h; j++) { if i == 0 or i == w-1 or j == 0 or j == h-1 { rm[0] = noone; rm[1] = i; rm[2] = j...
  4. Rob

    FATAL ERROR: Trying to index a variable which is not an array

    Using GM:Proffessional, no tag for it that I can find. Hello, I have a bug I can't seem to fix. The array is initialised properly and only recently, the last few days there is this fatal error. The bug I can't fix is as follows: ___________________________________________...
Top