01.03.2017, 18:16
The problem is that I want it to loop through all players however it only loops through first 20, at times just 10 or just 5 and at times 25.. what could be the problem?
Код:
public AchievementProcess() { foreach(Player,i) { if(forbes[i] == 0) continue; if(pInfo[i][achievement1] == 0) { if(pInfo[i][Kills] >= 50) { //code SaveStatus(i); } } if(pInfo[i][achievementno2] == 0) { if(pInfo[i][Kills] >= 400) { //code SaveStatus(i); } } if(pInfo[i][achievementno3] == 0) { if(pInfo[i][Kills] >= 1600) { //code SaveStatus(i); } } if(pInfo[i][achievementno5] == 0) { if(pInfo[i][Kills] >= 7000) { //code SaveStatus(i); } } } } public SaveStatus(playerid) { // INT saving // return 1; }