View Single Post
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-08-2009 , 12:15   Re: [TUT] Code Styling
Reply With Quote #4

Nice.

I myself prefer HN.

Didn't knew that this was possible:
Code:
MyFunction( id )     if( is_user_alive( id ) )     {         client_print( 0, print_chat, "We are now killing %d", id )         user_kill( id )     }
o_O

About function names... I'm still not decided, but currently I write only the first letter (or letters, if function's type title is made from 2 words, like forward - fw). Like eDeathMsg() for event and cSay for command. Also sPrint() for stock.

BTW is the g_Test pointer (although danielkza said there are no pointers in Pawn) or a normal integer?
Code:
g_Test = register_cvar("amx_test", "1");
I was used to treat it as pointers (so g_Test was g_pTest) but then I realized I have no idea what pointer really is so now I treat is as normal integer (g_Test is now g_iTest). Which one is more correct?
__________________
hleV is offline