[Ajuda] Textdraw dinheiro
#1

Galera fiz uma textdraw para mudar a tradicional do samp, mas nгo sei como faзo para ela comeзar a contar o dinheiro
pq fica todo zerado

Textdraw


Код:
Textcifras[playerid] = TextDrawCreate(497.000000, 73.000000, "$");
	TextDrawBackgroundColor(Textcifras[playerid], 255);
	TextDrawFont(Textcifras[playerid], 3);
	TextDrawLetterSize(Textcifras[playerid], 0.749999, 2.899999);
	TextDrawColor(Textcifras[playerid], -855637761);
	TextDrawSetOutline(Textcifras[playerid], 1);
	TextDrawSetProportional(Textcifras[playerid], 1);

 
    Textdinheiro[playerid] = TextDrawCreate(512.000000, 75.000000, "00000000");
	TextDrawBackgroundColor(Textdinheiro[playerid], 255);
	TextDrawFont(Textdinheiro[playerid], 3);
	TextDrawLetterSize(Textdinheiro[playerid], 0.579999, 2.499999);
	TextDrawColor(Textdinheiro[playerid], -286338561);
	TextDrawSetOutline(Textdinheiro[playerid], 1);
	TextDrawSetProportional(Textdinheiro[playerid], 1);
Se alguem puder ajudar dou rep, vlw
Reply
#2

GetPlayerMoney(playerid);
utilize a callback public OnPlayerUpdate ou entгo crie uma callback com as funзхes de atualizaзгo e para getar a grana do player ficaria mais o menos assim:

pawn Код:
new granap[128];
    format(granap, sizeof(granap), "R$ %i",GetPlayerMoney(playerid));
    TextDrawSetString(Text:Textdinheiro[playerid], granap);
Reply
#3

Probrema resolvidro

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)