Spacing between functions question
#1

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
Reply
#2

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
Reply
#3

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

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 ] );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)