Soldier666 Posted April 12, 2013 Share Posted April 12, 2013 Hi everybody. So, I tried to do one script but It's not really working. So - [b]local model = getElementModel( localPlayer )[/b] [b] if model = 61 then [/b] [i][HERE GOES THE REST OF THE SCRIPT][/i] [b]end[/b] So I am 100% sure that something is wrong with those first rows.. That's why you dont need the rest of the script. If somebody could edit my mistake I would really appreciate that. Link to comment
Vision Posted April 12, 2013 Share Posted April 12, 2013 Change this if model = 61 then to this if model == 61 then Link to comment
Soldier666 Posted April 12, 2013 Author Share Posted April 12, 2013 Change this if model = 61 then to this if model == 61 then As I said! EASY. Thank you man! It works. btw. Is there any explanation for that? I'm just newbie so I probably should learn that. When it's == and when =. Link to comment
50p Posted April 12, 2013 Share Posted April 12, 2013 Use single equal sign (=) to assign a value to a variable. Use double equal signs (==) to compare if the 2 values are equal. Link to comment
Soldier666 Posted April 12, 2013 Author Share Posted April 12, 2013 Use single equal sign (=) to assign a value to a variable.Use double equal signs (==) to compare if the 2 values are equal. Okay, clear. Thank you both! You can now lock this and mark as Solved Link to comment
Recommended Posts