Jump to content

race loses


kevin11

Recommended Posts

Posted (edited)
setElementData(getElementData,"Race Loses",tonumber(getElementData(winner,"Race Loses"))+1)

what is wrong with this line :S it doesnt give a error but it also doesnt work:S

Edited by Guest
Posted
setElementData(winner,"Race Loses",tonumber(getElementData(winner,"Race Loses"))+1)

might this be the problem?

doesnt it now add 1 lose to to winner?

Posted

Well, actually you haven't explained your code. We're not here to make guesses BUT my last guess is...

As you mistyped onPlayerWasted in your code which you edited later then the thing you want might be:

addEventHandler("onPlayerWasted",getRootElement(),
function()
setElementData(source,"Race Loses",getElementData(source,"Race Loses")+1)
end
)

Anyways, you need to explain the problem and give us more code to help you.

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