28.08.2015, 05:37
I have this code, but it don't work so fine
moneybagTD need show value to moneybag[playerid]...
This TextDraw need to be equal to moneybag[playerid]
But
WHY!?
OnPlayerDisconnect
DoisSegundos(playerid)
OnPlayerLogin
moneybagTD need show value to moneybag[playerid]...
This TextDraw need to be equal to moneybag[playerid]
But
Код:
moneybag[playerid] = 8449 moneybagTD[playerid] = 8753
Код:
new PlayerText: MoneyBagTD[MAX_PLAYERS];
Код:
PlayerTextDrawDestroy(playerid, MoneyBagTD[playerid]);
Код:
// money bag TD new mbstring[128]; format(mbstring, sizeof(mbstring), "BAG:$%08d", moneybag[i]); PlayerTextDrawSetString(playerid, MoneyBagTD[i], mbstring); PlayerTextDrawSetProportional(i, MoneyBagTD[i], 1); TextDrawHideForPlayer(i, MoneyBagTD[i]); PlayerTextDrawShow(i, MoneyBagTD[i]);
Код:
MoneyBagTD[playerid] = CreatePlayerTextDraw(playerid, 440.000000, 422.000000, "88"); PlayerTextDrawBackgroundColor(playerid, MoneyBagTD[playerid], 255); PlayerTextDrawFont(playerid, MoneyBagTD[playerid], 3); PlayerTextDrawLetterSize(playerid, MoneyBagTD[playerid], 0.699998, 2.399998); PlayerTextDrawColor(playerid, MoneyBagTD[playerid], -16776961); PlayerTextDrawSetOutline(playerid, MoneyBagTD[playerid], 1); PlayerTextDrawSetProportional(playerid, MoneyBagTD[playerid], 1);