[plaese Help me]How to check the most of a variable?
#5

Check if the variable is close to eg 99999 then return the var value which is closest to 99999.
Idk exactly how to make this, but you have to use a for loop AFAIK.

Sorry that I'm not much help..

EDIT:

Try this:

pawn Код:
//global
new
  KillWinner,
  MostKills;
pawn Код:
//onplayerdeath
if(PlayerKills[ killerid ] > MostKills)
{
  KillWinner = killerid;
  MostKills = PlayerKills[ killerid ];
}
I think it would work.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)