Categories > Coding > Lua >
Whats the problem with my code?
Posted
My code keeps returning this error and i dont know whats wrong. The error is "attempt to compare string <= number" and my code will be below.
if not player.OwnedCharacters:FindFirstChild(character) and player.leaderstats.Cash.Value >= charRequested.Price.Value then
Replied
As the error says, string cannot be compared with a number. You will have to turn the string into an int, and it should work.
Cancel
Post
Random quote here...
Random quote here...
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post