manve1 Posted September 25, 2012 Share Posted September 25, 2012 the script i made doesn't output any debugscript 3 or something in chat function cry_baby( ) setTimer ( outputChatBox, 100, 1, "#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))", source, 255, 255, 255, true ) end end addCommandHandler( "cry", cry_baby ) Link to comment
Jaysds1 Posted September 25, 2012 Share Posted September 25, 2012 (edited) source isn't defined try this: function cry_baby(source) setTimer(outputChatBox,100,1,"#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))",source,255,255,255,true) end addCommandHandler( "cry", cry_baby ) BTW, make sure this is server-side, but if it's client-side try this: function cry_baby() local source = localPlayer setTimer(outputChatBox,100,1,"#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))",source,255,255,255,true) end addCommandHandler( "cry", cry_baby ) Edited September 25, 2012 by Guest Link to comment
Anderl Posted September 25, 2012 Share Posted September 25, 2012 the script i made doesn't output any debugscript 3 or something in chat function cry_baby( ) setTimer ( outputChatBox, 100, 1, "#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))", source, 255, 255, 255, true ) end end addCommandHandler( "cry", cry_baby ) Why a 100ms timer? it's basically the same as outputting the text right after typing the command ._. Link to comment
manve1 Posted September 25, 2012 Author Share Posted September 25, 2012 the script i made doesn't output any debugscript 3 or something in chat function cry_baby( ) setTimer ( outputChatBox, 100, 1, "#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))", source, 255, 255, 255, true ) end end addCommandHandler( "cry", cry_baby ) Why a 100ms timer? it's basically the same as outputting the text right after typing the command ._. because it is? i want it to be like this Link to comment
Anderl Posted September 25, 2012 Share Posted September 25, 2012 the script i made doesn't output any debugscript 3 or something in chat function cry_baby( ) setTimer ( outputChatBox, 100, 1, "#FF0000 Cries like a baby #0000FF (( #FFFFFF".. getPlayerName(source) .."#0000FF ))", source, 255, 255, 255, true ) end end addCommandHandler( "cry", cry_baby ) Why a 100ms timer? it's basically the same as outputting the text right after typing the command ._. because it is? i want it to be like this That makes no sense. Link to comment
Jaysds1 Posted September 25, 2012 Share Posted September 25, 2012 ok, wat ever, Manve1 does my script work? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now