bamby12 Posted January 17, 2011 Share Posted January 17, 2011 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?? Link to comment
Scooby Posted January 18, 2011 Share Posted January 18, 2011 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. 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