Jump to content

[SOLVED] Easy 4 scripters


Soldier666

Recommended Posts

Posted

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

Posted
Change this
if model = 61 then 

to this

if model == 61 then 

As I said! EASY. :D

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

Posted

Use single equal sign (=) to assign a value to a variable.

Use double equal signs (==) to compare if the 2 values are equal.

Posted
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 ;)

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...