Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

MoneyTextdraw

$
0
0
Greedings,i have big problem...This textdraw update only for ID 0 but not for ID 1.Please help me.
//OnGamemodeInit creating the textdraw
for(new i; i<MAX_PLAYERS; i++)
{
TDEditor_PTD[i][0] = CreatePlayerTextDraw(i, 494.000152, 80.239952, "box");
PlayerTextDrawLetterSize(i, TDEditor_PTD[i][0], 0.000000, 1.840005);
PlayerTextDrawTextSize(i, TDEditor_PTD[i][0], 612.000000, 0.000000);
PlayerTextDrawAlignment(i, TDEditor_PTD[i][0], 1);
PlayerTextDrawColor(i, TDEditor_PTD[i][0], -1);
PlayerTextDrawUseBox(i, TDEditor_PTD[i][0], 1);
PlayerTextDrawBoxColor(i, TDEditor_PTD[i][0], 255);
PlayerTextDrawSetShadow(i, TDEditor_PTD[i][0], 0);
PlayerTextDrawSetOutline(i, TDEditor_PTD[i][0], 0);
PlayerTextDrawBackgroundColor(i, TDEditor_PTD[i][0], 255);
PlayerTextDrawFont(i, TDEditor_PTD[i][0], 1);
PlayerTextDrawSetProportional(i, TDEditor_PTD[i][0], 1);
PlayerTextDrawSetShadow(i, TDEditor_PTD[i][0], 0);

TDEditor_PTD[i][1] = CreatePlayerTextDraw(i, 490.800170, 80.239982, "2500000.596");
PlayerTextDrawLetterSize(i, TDEditor_PTD[i][1], 0.320799, 1.592533);
PlayerTextDrawAlignment(i, TDEditor_PTD[i][1], 1);
PlayerTextDrawColor(i, TDEditor_PTD[i][1], 8388863);
PlayerTextDrawSetShadow(i, TDEditor_PTD[i][1], 0);
PlayerTextDrawSetOutline(i, TDEditor_PTD[i][1], 0);
PlayerTextDrawBackgroundColor(i, TDEditor_PTD[i][1], 255);
PlayerTextDrawFont(i, TDEditor_PTD[i][1], 1);
PlayerTextDrawSetProportional(i, TDEditor_PTD[i][1], 1);
PlayerTextDrawSetShadow(i, TDEditor_PTD[i][1], 0);

TDEditor_PTD[i][2] = CreatePlayerTextDraw(i, 570.799804, 79.493301, "Eur");
PlayerTextDrawLetterSize(i, TDEditor_PTD[i][2], 0.504000, 1.689600);
PlayerTextDrawAlignment(i, TDEditor_PTD[i][2], 1);
PlayerTextDrawColor(i, TDEditor_PTD[i][2], 8388863);
PlayerTextDrawSetShadow(i, TDEditor_PTD[i][2], 0);
PlayerTextDrawSetOutline(i, TDEditor_PTD[i][2], 0);
PlayerTextDrawBackgroundColor(i, TDEditor_PTD[i][2], 255);
PlayerTextDrawFont(i, TDEditor_PTD[i][2], 1);
PlayerTextDrawSetProportional(i, TDEditor_PTD[i][2], 1);
PlayerTextDrawSetShadow(i, TDEditor_PTD[i][2], 0);
}
//OnPlayerConnect
PlayerTextDrawShow(playerid,TDEditor_PTD[playerid][0]);
PlayerTextDrawShow(playerid,TDEditor_PTD[playerid][1]);
PlayerTextDrawShow(playerid,TDEditor_PTD[playerid][2]);
SetTimer("MoneyUpdater",1,true);
//public
public MoneyUpdater(playerid)
{
for(new i; i<MAX_PLAYERS; i++)
{
new string[128];
format(string,sizeof(string),"%.2f", Peniaze[i]);
PlayerTextDrawSetString(i,TDEditor_PTD[i][1],string);
}
return 1;
}

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>