Jump to content

Loading script error, Please help


[SG]Santeri

Recommended Posts

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 :)

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