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