Help This timer is stupid :S
#5

This was my Timer isn't it? whatever, here is what you need:

Top:
pawn Код:
XPTimer[MAX_PLAYERS];
Login:
pawn Код:
XPTDLoad(playerid);
XPTimer[playerid] = SetTimerEx("PlayerXPTimer", 100, true, "d", playerid);
PlayerInfo[playerid][pExp] = dini_Int(file,"XP");
The timer: (same)
pawn Код:
forward PlayerXPTimer(playerid);
public PlayerXPTimer(playerid)
{
   new string[128];
   TextDrawHideForPlayer(playerid, TDSTATS[playerid]);
   format(string, sizeof(string), "~p~XP:%d", GetPlayerXP(playerid));
   TextDrawSetString(TDSTATS[playerid], string);
   TextDrawShowForPlayer(playerid, TDSTATS[playerid]);
}
Disconnect:
pawn Код:
KillTimer(XPTimer[playerid]);
TextDrawHideForPlayer(playerid, TDSTATS[playerid]);
Reply


Messages In This Thread
Help This timer is stupid :S - by Lorenc_ - 08.07.2010, 04:20
Re: Help This timer is stupid :S - by Lorenc_ - 08.07.2010, 04:50
Re: Help This timer is stupid :S - by bigcomfycouch - 08.07.2010, 05:03
Re: Help This timer is stupid :S - by Lorenc_ - 08.07.2010, 05:05
Re: Help This timer is stupid :S - by CAR - 08.07.2010, 07:27

Forum Jump:


Users browsing this thread: 1 Guest(s)