SA-MP Forums Archive
Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (/showthread.php?tid=375803)



Help - Alcatraz Gaming - 08.09.2012

Hi, all! I am starting to learn PAWNO, and i have some questions. I know this is very simple, but please bare with me, because i am a beginner in PAWNO

What is = and ==?


Re: Help - detter - 08.09.2012

When you use "=" it means you are assigning something to the some value
Код:
new variable_A; // You create new variables ( empty "box") 
new variable_B;

variable_A = 1; // putting some value in "boxes"
variable_B = 243;
variable_A (variable_B) -> your container
1 (243) -> some value

and with "==" you check if something is equal to something else
Код:
if( variable_A == variable_B )
{
    // if variable_B is equal  to variable_A this part of code will be executed
}



Re: Help - LetsOWN[PL] - 08.09.2012

Guy @up was first, remove this post.
Greetz,
LetsOWN