Forum

> > CS2D > Scripts > Rank bug - dont show
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Rank bug - dont show

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Rank bug - dont show

J_Lucas
User Off Offline

Zitieren
hi i using this script file Datei existiert nicht (5304)
the code is here
code >

when i say rank it dont show the rank
i searched on forum , but all the answers is with another script , so pls i need to fix it , if anyone know how i will be

I Want to say rank , and then show the rank

alt Re: Rank bug - dont show

DC
Admin Off Offline

Zitieren
I guess he wanted to imply that iterating over all numbers from 1 to 99.999 is not a very clean and fast solution...

You could simply make it several thousand times faster by replacing
1
for c=1,99999 do
with
1
for c=1,#adminler do

Note: # detects the length/size of a table

alt Re: Rank bug - dont show

Apache uwu
User Off Offline

Zitieren
Try adding an additional check for 'rank' and return 0 accordingly.

1
2
3
4
5
6
7
addhook("say","po")
	function po(id,txt)
		if string.lower(txt)=="rank" then
			return 0
		end
		
		-- all the other code

alt Re: Rank bug - dont show

J_Lucas
User Off Offline

Zitieren
thx for help user Apache uwu , but i fixed
code >

i found treads in usgn forum , and taked help examples from "help" codes , and edited
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht