Jump to content

Loading script error, Please help


[SG]Santeri

Recommended Posts

Posted

It gives me errors of many code lines, they are these, someone please fix 'dis for me.

setElementData(playerOwner,"Money",tonumber(getElementData(source,"Money") - price) ) 

triggerClientEvent ( source, "housing:showInfo", source, "error", "You need an additional $".. convertNumber ( price - tonumber(getElementData(source,"Money") ) .."." ) 

if ( tonumber(getElementData(source,"Money")) >= price ) then 

setElementData(playerOwner,"Money",tonumber(getElementData(source,"Money") + price)) 

setElementData(playerOwner,"Money",tonumber(getElementData(source,"Money") - price)) 

Thanks :)

Posted
You forgot to close the line with ')'

What you mean, isn't it closed?

It means that for every '(' you write there must be a ')' to close it. All according to the syntax of course so make sure you close them in the correct place.
Posted
triggerClientEvent ( source, "housing:showInfo", source, "error", "You need an additional $".. convertNumber ( price - tonumber(getElementData(source,"Money") ) .."." )) 

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