[SG]Santeri Posted September 24, 2014 Posted September 24, 2014 Error(/debugscript3): Code (Line 245): setElementData(playerOwner,"Money",tonumber(getElementData(source,"Money") - price) Thanks in advance!
[SG]Santeri Posted September 24, 2014 Author Posted September 24, 2014 You forgot to close the line with ')' What you mean, isn't it closed?
[SG]Santeri Posted September 24, 2014 Author Posted September 24, 2014 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
Mr_Moose Posted September 24, 2014 Posted September 24, 2014 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.
Saml1er Posted September 24, 2014 Posted September 24, 2014 triggerClientEvent ( source, "housing:showInfo", source, "error", "You need an additional $".. convertNumber ( price - tonumber(getElementData(source,"Money") ) .."." ))
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now