Jump to content

Script doesn't work.


Rat32

Recommended Posts

Hello. This is my script:

function spawnOnLogin() 
    setTimer(function() spawnPlayer (source, 2034.17883, -1403.27026, 17.28900) end, 4000, 1) 
end 
addEventHandler("onPlayerWasted", getRootElement(), spawnOnLogin) 

What this doesn't work? :)

DEBUGSCRIPT:

bad argument @ spawnPlayer, argument 1 - got nil.

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