[Question]Is this correct indent?
#3

Quote:
Originally Posted by Bmxerlmao5288
Посмотреть сообщение
When i Do My Codeing I Do It like this For The Indenting

Код:
         public OnPlayerDeath(playerid, killerid, reason)
{    
         new pName[MAX_PLAYER_NAME];
         GetPlayerName(playerid,pName,sizeof(pName));
         if(killerid == INVALID_PLAYER_ID)
{       
         SendMessage(INVALID_PLAYER_ID,playerid,reason);
         printf("%s was killed (%s)",pName,reason);
}
         else    
{        
         if(gTeam[killerid] != gTeam[playerid])
{        SendDeathMessage(killerid,playerid,reason);
         SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
         GivePlayerMoney(killerid, 10000);
         printf("%s was killed by %s (%s)",pName,killerid,reason);
}        
         else        
{             
         SendDeathMessage(killerid,playerid,reason);
         printf("%s was killed by a team mate",pName);
         return 1;
}
But Other Than That It Looks Good
I use to code like that too when i start pawn coding

btw, thanks
Reply


Messages In This Thread
[Question]Is this correct indent? - by Gazmull - 13.06.2011, 04:55
Re: [Question]Is this correct indent? - by Bmxerlmao5288 - 13.06.2011, 05:04
Re: [Question]Is this correct indent? - by Gazmull - 13.06.2011, 05:08

Forum Jump:


Users browsing this thread: 4 Guest(s)