[Ajuda] TextDraw
#1

forward UpdateText(playerid);
public UpdateText(playerid)
{
new pScore[16], pPing[16], pSkin[16], pCash[16];
format(pPing, sizeof(pPing), "%d ms", GetPlayerPing(playerid));
TextDrawSetString(Textdraw3, pPing);
format(pScore, sizeof(pScore), "%d", GetPlayerScore(playerid));
TextDrawSetString(Textdraw4, pScore);
format(pSkin, sizeof(pSkin), "%d", GetPlayerSkin(playerid));
TextDrawSetString(Textdraw8, pSkin);
format(pCash, sizeof(pCash), "%d", GetPlayerMoney(playerid));
TextDrawSetString(Textdraw6, pCash);
SetTimerEx("UpdateText2", 1000, true, "i", playerid);
return 1;
}

forward UpdateText2(playerid);
public UpdateText2(playerid)
{
new pScore[16], pPing[16], pSkin[16], pCash[16];
format(pPing, sizeof(pPing), "%d ms", GetPlayerPing(playerid));
TextDrawSetString(Textdraw3, pPing);
format(pScore, sizeof(pScore), "%d", GetPlayerScore(playerid));
TextDrawSetString(Textdraw4, pScore);
format(pSkin, sizeof(pSkin), "%d", GetPlayerSkin(playerid));
TextDrawSetString(Textdraw8, pSkin);
format(pCash, sizeof(pCash), "%d $", GetPlayerMoney(playerid));
TextDrawSetString(Textdraw6, pCash);
return 1;
}[/CODE]
Reply


Messages In This Thread
TextDraw - by LKING - 16.05.2014, 22:28
Re: TextDraw - by MultiKill - 16.05.2014, 22:35
Re: TextDraw - by LKING - 16.05.2014, 22:37
Re: TextDraw - by MultiKill - 16.05.2014, 22:46
Re: TextDraw - by LKING - 16.05.2014, 22:51
Re: TextDraw - by MultiKill - 16.05.2014, 22:54
Re: TextDraw - by LKING - 16.05.2014, 22:59
Re: TextDraw - by MultiKill - 16.05.2014, 23:07
Re: TextDraw - by LKING - 16.05.2014, 23:10
Re: TextDraw - by MultiKill - 16.05.2014, 23:20

Forum Jump:


Users browsing this thread: 3 Guest(s)