Counting Commands - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Counting Commands (
/showthread.php?tid=346868)
Counting Commands -
JaKe Elite - 30.05.2012
Hello,
Is it possible to count all ZCMD commands?
like if i have /help /cmd /register /login command
it will print out like this
Код:
Total of Commands: 4
Re: Counting Commands -
JaKe Elite - 31.05.2012
BUMP
Re: Counting Commands -
ViniBorn - 31.05.2012
It is scriptable, but it is a bit tricky if you have many commands
Re: Counting Commands -
JaKe Elite - 31.05.2012
so it will lag during the counting?
because i have more than 100+ commands included Admin System/VIP System/Rcon Admin/Player Commands
Actually my Gamemode (not edit made by myself)
are near to reach 7,000 lines (7k)
Re: Counting Commands -
Revo - 31.05.2012
I don't see the use in such a un-useful feature.
Re: Counting Commands -
JaKe Elite - 31.05.2012
I need it so i can count it fast instead of counting it using my eye.
Let me ask you something,
Can you count 100+ commands in just 1 minute?
Re: Counting Commands -
AdamCooper - 31.05.2012
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
Re: Counting Commands -
JaKe Elite - 31.05.2012
I cannot work it out without explaining...
Re: Counting Commands -
pasha97 - 31.05.2012
I have started gm with a few commands and put them into /cmd, since when i have many commands and each time i create new one, i add it into /cmd in order not to forget
Re: Counting Commands -
JaKe Elite - 31.05.2012
Hope you understand me thats what i'm doing putting all commands to /cmds and putting admin commands to /acmds or /allacmds, also the same to VIP. but i want to count it. not so being n00b/idiot but i want to count it really.