Forum

> > CS2D > Scripts > String bug
Forums overviewCS2D overview Scripts overviewLog in to reply

English String bug

2 replies
To the start Previous 1 Next To the start

old String bug

-Darkman
User Off Offline

Quote
Hello Users us!
i was trying to fix this script.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmds = (string.sub(cmd,3,2)==[[cmd]])
ID = ((string.sub(cmd,id,6)==[[cmd]]))
Admins = {113332}
addhook("say","admsay")
function admsay(id, cmd)
	for _, a in ipairs(Admins) do
		if (player(id,"usgn")==a) then
			if string.sub(cmd,1,1)=="!" then
				parse(cmds.." "..ID)
			  return 1
			end
		end
	end
end

in line 1 i mean when i say !any command of cs2d
in line 2 i mean when the command have id to do something ; example : !kick 2 kick = cmd 2 = id

i want help me , and don't forget to tell me where is bug and how i can fix it .
Good bye.

old Re: String bug

omg
User Off Offline

Quote
obviously didn't even look at code...not sure how you'll be able to fix -anything-
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview