manve1 Posted September 25, 2012 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 )
Jaysds1 Posted September 25, 2012 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
Anderl Posted September 25, 2012 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 ._.
manve1 Posted September 25, 2012 Author 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
Anderl Posted September 25, 2012 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.
Jaysds1 Posted September 25, 2012 Posted September 25, 2012 ok, wat ever, Manve1 does my script work?
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