14.02.2016, 21:58
(
Последний раз редактировалось Pottus; 14.02.2016 в 23:08.
)
Yeah I mentioned you might need to re-work some logic now I am looking at it the problem is you are shifting the values in the wrong order. You need to start from the last entry and shift the previous entry.
Example
If you start at the start of the array then you are going to just copy all the data of the first index to every other index instead of shifting it. This will trash any data in the last index.
Example
Код:
for(new x = MAX_POLICECALLS - 1; x > 0; x--) { PoliceCall[x][pol_rl] = PoliceCall[x - 1][pol_rl]; ... }