How to
#1

Okay, let's say I have this :

pawn Код:
new playerid2; // On top of my script

dcmd_stats(playerid, params[])
{
  new string[156];
  new name[MAX_PLAYER_NAME];
  if(sscanf(params, "u", playerid2))
  {
    stats = SetTimerEx("Stats", 1000, true, "i", playerid);
  }
  else if(playerid2 == INVALID_PLAYER_ID) SendClientMessage(playerid, Red, "[Server] : Invalid Player ID! Player not connected");
  else if(playerid2 == playerid)
  {
    stats = SetTimerEx("Stats", 1000, true, "i", playerid);
  }
  else
  {
    stats = SetTimerEx("Stats", 1000, true, "i", playerid);
  }
  return 1;
}
So now I'm stuck on how to get the player's stats on the Timer I've setted.
How can I get the player's stats in the Timer I've setted.
Just give me an example.
Reply


Messages In This Thread
How to - by ViruZZzZ_ChiLLL - 27.10.2010, 20:33
Re: How to - by The_Moddler - 27.10.2010, 20:36
Re: How to - by ViruZZzZ_ChiLLL - 27.10.2010, 20:38
Re: How to - by The_Moddler - 27.10.2010, 20:42
Re: How to - by ViruZZzZ_ChiLLL - 27.10.2010, 20:45
Re: How to - by The_Moddler - 27.10.2010, 21:04
Re: How to - by ViruZZzZ_ChiLLL - 27.10.2010, 22:53
Re: How to - by The_Moddler - 27.10.2010, 23:49
Re: How to - by iggy1 - 28.10.2010, 00:17
Re: How to - by ViruZZzZ_ChiLLL - 28.10.2010, 00:45

Forum Jump:


Users browsing this thread: 1 Guest(s)