Forum

> > CS2D > Scripts > Bugs with this simple script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Bugs with this simple script

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Bugs with this simple script

Crash13
User Off Offline

Zitieren
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

alt Re: Bugs with this simple script

Homam
User Off Offline

Zitieren
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?

alt Re: Bugs with this simple script

Crash13
User Off Offline

Zitieren
user Homam hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht