Jump to content

resetTimer PROBLEM !!


Recommended Posts

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

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 by Guest
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...