SA-MP Forums Archive
Just wondering - 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: Just wondering (/showthread.php?tid=300083)



Just wondering - Tomejus - 28.11.2011

I'm just wondering, is there any difference between for example: Something[playerid] = Something; and:

Something[ playerid ] = Something; - i mean the spaces, does it effect code or something?

second example:

if(MyEnum[playerid][Variable])
{
// do something.
}

if( MyEnum[ playerid ][ Variable ] )
{
// do something.
}


Re: Just wondering - vyper - 28.11.2011

Nope.


Re: Just wondering - MP2 - 28.11.2011

No, but it looks strange.


Re: Just wondering - Ash. - 28.11.2011

Spaces just make it more human-readable. (...Apparently, I don't personally see a difference).

It's just personal preference.