[Help] Mathematical calculations, to calculate the time in prison.
#3

1) you are not sending the formated strings ?

use
pawn Код:
Send Client Message(...);
2) the answer to your question is use a enum

Example:

pawn Код:
enum pStuff
{
  JailedTime,
  BailTime
}

new PlayerStuff[MAX_PLAYERS][pStuff];

public CheckJailTime()
{
  for ( new i = 0; i < MAX_PLAYERS; i++ )
  {
    if(IsPlayerConnected(i))
    {
      new Hour,
         Min,
         Sec;
      GetTime(Hour, Min, Sec);
      PlayerStuff[i][JailedTime] = Min;
      if(PlayerStuff[i][JailedTime] >= PlayerStuff[i][BailTime])
      {
        ReleasePlayerFromJail(i);
      }
      PlayerStuff[i][JailedTime] = 0;
      PlayerStuff[i][JailedTime] = 0;
    }
  }
  return 1;
}
Remember this is just a example but if you study the code and adjust it you can make it work for you

Damn, beat me
Reply


Messages In This Thread
[Help] Mathematical calculations, to calculate the time in prison. - by vinewood - 02.05.2009, 17:00
Re: [Help] Mathematical calculations, to calculate the time in prison. - by yom - 02.05.2009, 17:43
Re: [Help] Mathematical calculations, to calculate the time in prison. - by JaYmE - 02.05.2009, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)