*** Terrible Title Removed
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
It is MUCH simpler to write and read "if" checks with the "true" version first:

pawn Код:
if((killerid == playerid) || (killerid == INVALID_PLAYER_ID))
{
        pInfo[playerid][Suicides]++;
}
else
{
        pInfo[killerid][Kills]++;
        pInfo[playerid][Deaths]++;
}
Yeah I prefer this way. It's much easier, non-confusing and understandable.
Reply


Messages In This Thread
*** Terrible Title Removed - by Opah - 25.10.2012, 10:58
Re: why ain't this working - by niels44 - 25.10.2012, 11:00
Re: *** Terrible Title Removed - by Faisal_khan - 25.10.2012, 11:20
Re: *** Terrible Title Removed - by Opah - 25.10.2012, 11:20
Re: *** Terrible Title Removed - by Faisal_khan - 25.10.2012, 11:23
Re: *** Terrible Title Removed - by Opah - 25.10.2012, 11:29
Re: *** Terrible Title Removed - by Faisal_khan - 25.10.2012, 11:32
Re: *** Terrible Title Removed - by Opah - 25.10.2012, 11:36

Forum Jump:


Users browsing this thread: 2 Guest(s)