Jump to content

خطأ بسيط


Adham

Recommended Posts

سلام عليكم ورحمه الله وبركاته

كنت اسوي مود,, وتححقت في سيرفر

ان amount

اكبر من او تساوي الأكونت داتا

بس يجي خطأ

كل شوي

attempt to compare string with boolean

السطر/

if ( getAccountData ( acc, "Mods" ) >= tonumber ( amount ) ) then

 

Link to comment
Just now, #_iMr.[E]coo said:

local Data = getAccountData ( acc , 'Mods' )

if ( Data == 0 ) or ( Data == false ) or ( Data == nil ) then 
  print ( 'Data nil Value' ) 
else
  if ( Data >= tonumber ( amount ) ) then 
    -- Code 
  end 
end

 

صار يجي لي 

data nil value.

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