Jump to content

attempt to compare number with boolean


Freire

Recommended Posts

  • MTA Anti-Cheat Team

In this case "attempt to compare number with boolean" means that you cannot do if money > 100 then because "theplayer" returns false (boolean is 'false' or 'true'). You cannot check a value of something/someone that as far the script knows doesn't exist (because, as DNL291 said, it's not defined). In your case, you must pass a valid player to the script (in your local "money").

I hope this explanation helps you and other beginners

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