Forum

> > CS2D > Scripts > return 1 not working.
Forums overviewCS2D overview Scripts overviewLog in to reply

English return 1 not working.

2 replies
To the start Previous 1 Next To the start

moved return 1 not working.

Man Of Steel
User Off Offline

Quote
Hi everyone,
I need some help maybe its not bug because i checked thread cs2d Hide text after command its related to my problem.

Check this simple script i made for my server but his return 1 value not working i want to hide my command but its not work.

1
2
3
4
5
6
7
8
9
addhook("say","msgs") 
function msgs(id, txt) 
     if(txt=="!admin") then
          parse ("sv_msg2 "..id.." ©255255255---Information About Server »Owner« ---")
          parse ("sv_msg2 "..id.." ©000255000-The Owner Of server ©255255255Spy-eR ©000255000-U.S.G.N ©255255255#159747")
          parse ("sv_msg2 "..id.." ©000255000-All Credits goes to ©255255255Spy-eR ©000255000-U.S.G.N ©255255255#159747")
          return  1        
     end
end

and another problem that yesterday i ask about Shop easy Customization Script for hide this script command !shop, @user Gaios: tell me for replace this line:
addhook("say", "ChatCommands")
to
addhook("say", "ChatCommands", 999)


I Did that but some times its work and some times its doesn't work why ???

Help me..

old Re: return 1 not working.

DC
Admin Off Offline

Quote
@user Man Of Steel:
• You posted this in the "maps" section, I moved it were it belongs (scripts). Please choose the right section when posting!

• Please do not mix topics! The forum becomes very confusing that way - which is bad. You already created thread cs2d Shop easy customization. - so if you have related questions to this topic please use that existing thread instead of asking here. The topic here is unrelated to the other one so it is NOT a good idea to mix them.

• You already found that other thread (thread cs2d Hide text after command). You should actually READ it because it already contains the answer to your question!

In general: Please search and read before creating new threads. It makes no sense to have multiple threads for exactly the same topic or problem.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview