saving score Help Plz Plz
#2

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
	SetPlayerScore (killerid, GetPlayerScore (killerid) + 1);
        Player[killerid][pScore]++;
	Player[killerid][pKills]++;
   	Player[playerid][pDeaths]++;
	GivePlayerMoney(killerid,2);
	return 1;
}
----------------

This's useless:
Код:
if(killerid != INVALID_PLAYER_ID)
- *Just saying* I think there's no need for [pScore], You can use SetPlayerScore instead
Reply


Messages In This Thread
saving score Help Plz Plz - by MBilal - 19.12.2013, 13:26
Re: saving score Help Plz Plz - by RowdyrideR - 19.12.2013, 13:44
Re: saving score Help Plz Plz - by MBilal - 19.12.2013, 13:52
Re: saving score Help Plz Plz - by arakuta - 19.12.2013, 14:04
Re: saving score Help Plz Plz - by MBilal - 19.12.2013, 14:36
Re: saving score Help Plz Plz - by SilentSoul - 19.12.2013, 16:07
Re: saving score Help Plz Plz - by MBilal - 19.12.2013, 16:16
Re: saving score Help Plz Plz - by SilentSoul - 19.12.2013, 16:19
Re: saving score Help Plz Plz - by MBilal - 19.12.2013, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)