Wyskakuje mi taki błąd:
error in code at line 2:
if global.weapon=0
at position 12: Unknown variable weapon
A taki mam napisany kod:
draw_sprite(player,direction/6,x,y) // Draws own sprite with the correct subimage
if global.weapon=0
draw_sprite(spr_handgun,direction/6,x,y) // If global.weapon is 0, draw the handgun at position with correct subimage
if global.weapon=1
draw_sprite(spr_machinegun,direction/6,x,y) // If global.weapon is 1 draw the machinegun at position with correct subimage