Forum

> > CS2D > Scripts > Rank bug - dont show
Forums overviewCS2D overview Scripts overviewLog in to reply

English Rank bug - dont show

6 replies
To the start Previous 1 Next To the start

old Rank bug - dont show

J_Lucas
User Off Offline

Quote
hi i using this script file File does not exist (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

old Re: Rank bug - dont show

DC
Admin Off Offline

Quote
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

old Re: Rank bug - dont show

Apache uwu
User Off Offline

Quote
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

old Re: Rank bug - dont show

J_Lucas
User Off Offline

Quote
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview