saving score Help Plz Plz
#4

Quote:
Originally Posted by RowdyrideR
Посмотреть сообщение
This's useless:
Код:
if(killerid != INVALID_PLAYER_ID)
No, this is isn't.

What about this:

pawn Код:
new pKills[MAX_PLAYERS]; // By default, it is pKills[500];

public OnPlayerDeath(playerid,killerid,reason)
{
    // killerid may be INVALID_PLAYER_ID, it means killerid = 65535
    pKills[killerid] ++;
    // There is a big mistake here, pKills doesn't have 65536 cells, so we don't have a 65535 cell id.
   return 1;
}
Accessing invalid cell id's will give you big problems.
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: 4 Guest(s)