Counting Commands
#7

pawn Код:
new carcount[800];
for(new c=0;c<sizeof(Vehicles);c++) carcount[Vehicles[c][carmodel]]++;
new totalcars,totaltypes;
for(new c2=0;c2<sizeof(carcount);c2++){
    if(carcount[c2]){
        totaltypes++;
        totalcars+=carcount[c2];
    }
}
printf("Total Cars:%d - Vehicles types: %d",totalcars,totaltypes);
you can work it out to count ur accs easily
Reply


Messages In This Thread
Counting Commands - by JaKe Elite - 30.05.2012, 12:47
Re: Counting Commands - by JaKe Elite - 31.05.2012, 06:25
Re: Counting Commands - by ViniBorn - 31.05.2012, 06:33
Re: Counting Commands - by JaKe Elite - 31.05.2012, 06:37
Re: Counting Commands - by Revo - 31.05.2012, 06:39
Re: Counting Commands - by JaKe Elite - 31.05.2012, 06:43
Re: Counting Commands - by AdamCooper - 31.05.2012, 07:22
Re: Counting Commands - by JaKe Elite - 31.05.2012, 07:26
Re: Counting Commands - by pasha97 - 31.05.2012, 07:31
Re: Counting Commands - by JaKe Elite - 31.05.2012, 07:35

Forum Jump:


Users browsing this thread: 1 Guest(s)