Jump to content

What's wrong


Recommended Posts

@ 'setElementHealth' [Expected element at argument 1, got number]

And no one of the script works. It's server - side

function p ( source ) 
setPedStat( source, 24, 200 ) 
end 
  
function u ( source ) 
    setElementHealth ( source, 200 ) 
end 
    
addEventHandler("onPlayerLogin", root, p) 
addEventHandler("onPlayerSpawn", root, u) 

Link to comment
then when Must I put in function ( source ) root those thing?

source is never inside Funtion().

Inside the function are returned value's you can find on wiki.

For "onPlayerSpawn" you get :

float posX, float posY, float posZ, float spawnRotation, team theTeam, int theSkin, int theInterior, int theDimension

inside the function.

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