var myArray[10] = { 0,0,0,0,0,0,0,0,0,0 }; var x=9; function shiftRFunction(var newValue) { while(x>0) { if(x==1) { myArray[0] = newValue; } else { myArray[x-1] = myArray[x-2]; } x--; } }
PANEL* pan_debug = { pos_x = 740; pos_y = 5; digits(30, 80, "my array index: %1.0f", *, 1, myArray[x]); flags = SHOW; }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de