|H|TiTanium Posted June 21, 2013 Share Posted June 21, 2013 So, I got a problem, this thing doesn't work: This is what I get : .lua:1: Bad argument @ 'setTimer' [Expected function at argument 1, got nil] local myTimer = setTimer ( avisos, 1000,1) function avisos ( ) outputChatBox("[DayZ Extreme]Para ver o preço das bases e ter o nosso contato, digite /bases", getRootElement(), 0, 255, 0, true ) resetTimer( myTimer ) end Link to comment
PaiN^ Posted June 21, 2013 Share Posted June 21, 2013 remove the "local" at the first line P.S. : Why are you reseting the timer while you can just make it infinite ? Link to comment
|H|TiTanium Posted June 21, 2013 Author Share Posted June 21, 2013 Cool idea, I'll do it Link to comment
|H|TiTanium Posted June 21, 2013 Author Share Posted June 21, 2013 (edited) so, I've made this : but IT DOESN'T WORK, I'm using Server side function avisos ( ) outputChatBox( "[DayZ Extreme]Para ver o preço das bases e ter o nosso contato, digite /bases", getRootElement(), 0, 255, 0, true ) setTimer( avisos, 1000, 0 ) end Edited June 21, 2013 by Guest Link to comment
iPrestege Posted June 21, 2013 Share Posted June 21, 2013 so, I've made this : but IT DOESN'T WORK, function avisos ( ) outputChatBox( "[DayZ Extreme]Para ver o preço das bases e ter o nosso contato, digite /bases", getRootElement(), 0, 255, 0, true ) setTimer( avisos, 1000, 0 ) end function avisos ( ) outputChatBox( "[DayZ Extreme]Para ver o preço das bases e ter o nosso contato, digite /bases", getRootElement(), 0, 255, 0, true ) end setTimer( avisos, 1000, 0 ) Link to comment
|H|TiTanium Posted June 21, 2013 Author Share Posted June 21, 2013 Should I use server side or Client side ??? Link to comment
iPrestege Posted June 21, 2013 Share Posted June 21, 2013 It's server side because visible argument . Link to comment
PaiN^ Posted June 21, 2013 Share Posted June 21, 2013 If you can do somehing server side or client side, Allways do it server side ! 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