SA-MP Forums Archive
Spacing between functions question - 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: Spacing between functions question (/showthread.php?tid=475514)



Spacing between functions question - Riwerry - 13.11.2013

Guys what do you mean about this? I am using spaces between codes to get it more visible. Example: SetPlayerSkin (playerid, [pInfo] [pSkin]);

So the spaces. SetPlayerSkinspace(playerid,space[pInfo]space[pSkin]);

Tried it without spacing it, but still same thing. It works in both ways, just tell me what do you mean. Thanks


Re: Spacing between functions question - Kimossab - 13.11.2013

It's only for better viewing the codes, what can you easier read:
1 > SetPlayerSkin ( playerid , [pInfo][pSkin]);
or
2 > SetPlayerSkin(playerid,[pInfo][pSkin]);

the first 1 is pretty good for who's starting, to see very well the parameters and everything they gotta do. Also it's way easier when people request help so we can easily see what's the problem.

I think that answers your question, if not then I didn't understand it. kthxbai


Re: Spacing between functions question - Riwerry - 13.11.2013

It was just an example. Between [pInfo] and [pSkin] is space too


Re: Spacing between functions question - Konstantinos - 13.11.2013

They are just styles.

Some people prefer using spacing and some others not. I don't like everything being "too crowded" because it is sometimes unreadable.

I like it as:
pawn Код:
SetPlayerSkin( playerid, PlayerInfo[ playerid ][ pSkin ] );