Jump to content

Is it possible??


bamby12

Recommended Posts

Posted

is it possible to check things using if and then statements e,g

  
function whatever 
if (something,from,account,or,element,data = 1) then 
blah 
else 
blah 
end 
  

if this is possible how can i set the account or element data??

Posted

yes its possible, you can use element data or account data or any variables u choose.

these can be in your function or passed to you function from another.

eg:

function whatever(arg1,arg2)  ---  arg's passed from elsewhere within your script. 
  if (arg1 == blaaaa) then 
    blah 
  elseif (arg2 == blaaaaaaa) then 
    blaaaah 
  end 
end 

have a read here: https://wiki.multitheftauto.com/wiki/Scr ... troduction

you should find everything u need to know.

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