20.04.2010, 06:50
i forgot to modify if-statement line to work w/o using PVariables, fixed it now.
please replace the sorting part with the (workingone) provided here:
please replace the sorting part with the (workingone) provided here:
Код:
//sorting new ArrayWantedPlayersIDSorted[MAX_PLAYERS]; new count; // for(new level=6;level>1;level--) for(new level=1;level<6;level++) { for(new w=0;w<wantedcount;w++) { if(GetPlayerWantedLevel(ArrayWantedPlayersID[w])==level) { ArrayWantedPlayersIDSorted[count]=ArrayWantedPlayersID[w]; count++; } } } for(new w=0;w<wantedcount;w++) { ArrayWantedPlayersID[w]=ArrayWantedPlayersIDSorted[w]; }