14.04.2009, 14:00
//Ontop
//OnPlayerConnect
//GameModeExitFunc
//OnGameModeInit
Why it is the only first player that can be seen on this textdraw? (GF)
Код:
new Text:HClock[MAX_PLAYERS]; new PointUP; forward PointUpdate(playerid);
Код:
HClock[playerid] = TextDrawCreate(502.000000,96.000000, "00000000"); TextDrawAlignment(HClock[playerid],0); TextDrawLetterSize(HClock[playerid], 0.5, 1.5); TextDrawFont(HClock[playerid], 2); TextDrawSetProportional(HClock[playerid],1); TextDrawSetShadow(HClock[playerid], 2); TextDrawSetOutline(HClock[playerid],2); TextDrawShowForPlayer(playerid,HClock[playerid]);
Код:
KillTimer(PointUP);
Код:
PointUP = SetTimer("PointUpdate",1000,1);
Код:
public PointUpdate(playerid) { new string[256]; new Point = PlayerInfo[playerid][pPoint]; format(string,sizeof(string),"%d",Point); TextDrawSetString(HClock[playerid],string); TextDrawShowForPlayer(playerid,HClock[playerid]); return 1; }