SA-MP Forums Archive
Question: Would using the same number with #define work? - 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: Question: Would using the same number with #define work? (/showthread.php?tid=538632)



Question: Would using the same number with #define work? - stormchaser206 - 22.09.2014

So, would doing this cause an error in-game or would it be fine:

So, let's say I have two separate #defines
Код:
#define BLUETEAM 1
and
Код:
#define ADMINTEAM 1
I'm wondering, since I used the number one on both of them, would the script be confused if I kept calling on both of them later? I used to do that a lot, and it always worked, but I just want to make sure.

(If you're confused... sorry)


AW: Question: Would using the same number with #define work? - Nero_3D - 22.09.2014

It doesn't matter if they get used by different variables but if you use them both on only one variable the script won't know the difference between these teams


Re: Question: Would using the same number with #define work? - stormchaser206 - 22.09.2014

Okay, guys. Thanks