Jump to content

Help with this code.


Feche1320

Recommended Posts

I don't want to people abuse commands, so I did this:

if(getTickCount()-g_PlayerTick[source] < 20000) then 
        outputChatBox("Please wait 20 seconds between commands.", source, 255, 0, 0) 
        return 
    else 
        --more code 
       g_PlayerTick[source] = getTickCount() 
    end 

But the first line gives me this error:

 attempt to perform arithmetic on field '?' 

Thanks

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...