Jump to content

What's wrong


Recommended Posts

Posted

@ '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) 

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

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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