01.10.2017, 19:11
Quote:
Yeah i know. I could solve in that way, but i dont want to use that method, that's why i'm using foreach. Any advices? :/
|
Код:
foreach(new serveritemid : ServerItems) { count[serveritemid]++; if(count[serveritemid] == 3) { new next = serveritemid ; Iter_SafeRemove(ServerItems, next, serveritemid ); serveritemid = next; } if(!Iter_Count(ServerItems)) { printf("ServerItems empty"); } printf("%d", serveritemid); }