Quote:
Originally Posted by anakin_cstrike
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(id, pev_maxspeed, 300.0)
set_pev(id, pev_gravity, 0.45)
}
with semicolon
PHP Code:
if( is_user_alive(id) )
{
set_pev(id, pev_maxspeed, 300.0); set_pev(id, pev_gravity, 0.45);
}
or like this:
PHP Code:
if( is_user_alive(id) )
{
set_pev(id, pev_maxspeed, 300.0);
set_pev(id, pev_gravity, 0.45);
}
__________________