27.10.2010, 20:33
Okay, let's say I have this :
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.
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;
}
How can I get the player's stats in the Timer I've setted.
Just give me an example.