How to update textdraw information ?
#2

pawn Код:
new updateTimer[ MAX_PLAYERS ] ;

forward UpdatePlayer(playerid);

public OnPlayerConnect(playerid)
{
    updateTimer[playerid] = SetTimerEx("UpdatePlayer", 1000, true, "i", playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    KillTimer(updateTimer[playerid]);
    return 1;
}

public UpdatePlayer(playerid)
{
    new string[24];
    format(string, sizeof string, "Score: %d", GetPlayerScore(playerid));
    TextDrawSetString(ScoreText[playerid], string);
    return 1;
}
Reply


Messages In This Thread
How to update textdraw information ? - by SandKing94 - 08.08.2014, 11:30
Re: How to update textdraw information ? - by [XST]O_x - 08.08.2014, 11:51
Re: How to update textdraw information ? - by arakuta - 08.08.2014, 11:57
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 11:58
Re: How to update textdraw information ? - by Vince - 08.08.2014, 12:07
Re: How to update textdraw information ? - by [XST]O_x - 08.08.2014, 12:20
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 13:25
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 13:49
Re: How to update textdraw information ? - by caoraivoso3 - 08.08.2014, 13:51
Re: How to update textdraw information ? - by SandKing94 - 08.08.2014, 15:20

Forum Jump:


Users browsing this thread: 3 Guest(s)