View Single Post
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 02-09-2009 , 11:00   Re: [TUT] Code Styling
Reply With Quote #15

Quote:
Originally Posted by anakin_cstrike View Post
Very nice thread. I agree with everything.

By the way, i have a question about semicolons. I know it has been discussed before, but i don't understand what is actually doing.
Let's say, i have a code with no identition wich ignores you advices (tabs, spaces, brackets, etc.. ). If i put "#pragma semicolon 1" it will automatically make identitation or what ? sorry for asking without testing.
http://en.wikipedia.org/wiki/Semicolon#Computing_usage

Well if semicolon is in 1

You need to close all lines with ;

Example without semicolon
PHP Code:
if( is_user_alive(id) )
{
         
set_pev(idpev_maxspeed300.0)
         
set_pev(idpev_gravity0.45)

with semicolon
PHP Code:
if( is_user_alive(id) )
{
         
set_pev(idpev_maxspeed300.0); set_pev(idpev_gravity0.45);

or like this:
PHP Code:
if( is_user_alive(id) )
{
         
set_pev(idpev_maxspeed300.0); 
         
set_pev(idpev_gravity0.45);

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots