Forum

> > CS2D > Scripts > Bugs with this simple script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Bugs with this simple script

2 replies
To the start Previous 1 Next To the start

old Bugs with this simple script

Crash13
User Off Offline

Quote
I made now this script, but in console: don't find any bugs (all is ok: added brb_say to hook say) but when i write: @brb nothing happens.

1
2
3
4
5
6
addhook("say", "brb_say")
function brb_say(txt,id)
if (txt=="@brb") then
parse ("makespec "..id.."")
end
end

Btw i very much scripts, but begginer

old Re: Bugs with this simple script

Homam
User Off Offline

Quote
1
2
3
4
5
6
addhook("say", "brb_say")
 function brb_say(id,txt) -- < Here.
 	if (txt=="@brb") then
 		parse ("makespec "..id) -- Aannnnd, here.
 	end
 end

Maybe this?

old Re: Bugs with this simple script

Crash13
User Off Offline

Quote
user Homam has written
1
2
3
4
5
6
addhook("say", "brb_say")
 function brb_say(id,txt) -- < Here.
 	if (txt=="@brb") then
 		parse ("makespec "..id) --- here was mistake
 	end
 end

Maybe this?


Thanks. Now work
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview