16.05.2014, 22:28
(
Последний раз редактировалось LKING; 16.05.2014 в 23:33.
)
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]
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]