HELP textdraw problem
#8

public OnPlayerUpdate(playerid)
{
Pinigai0 = CreatePlayerTextDraw(playerid,497.000000, 80.000000, ".");
PlayerTextDrawBackgroundColor(playerid,Pinigai0, 255);
PlayerTextDrawFont(playerid,Pinigai0, 1);
PlayerTextDrawLetterSize(playerid,Pinigai0, 0.500000, 1.700000);
PlayerTextDrawColor(playerid,Pinigai0, 255);
PlayerTextDrawSetOutline(playerid,Pinigai0, 0);
PlayerTextDrawSetProportional(playerid,Pinigai0, 1);
PlayerTextDrawSetShadow(playerid,Pinigai0, 1);
PlayerTextDrawUseBox(playerid,Pinigai0, 1);
PlayerTextDrawBoxColor(playerid,Pinigai0, 255);
PlayerTextDrawTextSize(playerid,Pinigai0, 608.000000, 11.000000);
PlayerTextDrawSetSelectable(playerid,Pinigai0, 0);

Pinigai1 = CreatePlayerTextDraw(playerid,497.000000, 79.000000, "$");
PlayerTextDrawBackgroundColor(playerid,Pinigai1, 255);
PlayerTextDrawFont(playerid,Pinigai1, 3);
PlayerTextDrawLetterSize(playerid,Pinigai1, 0.500000, 1.700000);
PlayerTextDrawColor(playerid,Pinigai1, -1717986817);
PlayerTextDrawSetOutline(playerid,Pinigai1, 0);
PlayerTextDrawSetProportional(playerid,Pinigai1, 1);
PlayerTextDrawSetShadow(playerid,Pinigai1, 1);
PlayerTextDrawSetSelectable(playerid,Pinigai1, 0);

Pinigai2 = CreatePlayerTextDraw(playerid,496.000000, 82.000000, "............................................. ");
PlayerTextDrawBackgroundColor(playerid,Pinigai2, 255);
PlayerTextDrawFont(playerid,Pinigai2, 2);
PlayerTextDrawLetterSize(playerid,Pinigai2, 0.280000, 1.900000);
PlayerTextDrawColor(playerid,Pinigai2, -1);
PlayerTextDrawSetOutline(playerid,Pinigai2, 0);
PlayerTextDrawSetProportional(playerid,Pinigai2, 1);
PlayerTextDrawSetShadow(playerid,Pinigai2, 1);
PlayerTextDrawSetSelectable(playerid,Pinigai2, 0);

Pinigai3 = CreatePlayerTextDraw(playerid,496.000000, 66.000000, "............................................. ");
PlayerTextDrawBackgroundColor(playerid,Pinigai3, 255);
PlayerTextDrawFont(playerid,Pinigai3, 2);
PlayerTextDrawLetterSize(playerid,Pinigai3, 0.280000, 1.900000);
PlayerTextDrawColor(playerid,Pinigai3, -1);
PlayerTextDrawSetOutline(playerid,Pinigai3, 0);
PlayerTextDrawSetProportional(playerid,Pinigai3, 1);
PlayerTextDrawSetShadow(playerid,Pinigai3, 1);
PlayerTextDrawSetSelectable(playerid,Pinigai3, 0);

Pinigai4 = CreatePlayerTextDraw(playerid,508.000000, 79.000000, "0");
PlayerTextDrawBackgroundColor(playerid,Pinigai4, 255);
PlayerTextDrawFont(playerid,Pinigai4, 3);
PlayerTextDrawLetterSize(playerid,Pinigai4, 0.500000, 1.700000);
PlayerTextDrawColor(playerid,Pinigai4, -1);
PlayerTextDrawSetOutline(playerid,Pinigai4, 0);
PlayerTextDrawSetProportional(playerid,Pinigai4, 1);
PlayerTextDrawSetShadow(playerid,Pinigai4, 1);
PlayerTextDrawSetSelectable(playerid,Pinigai4, 0);

}
return 1;
}
forward Pinigas1(playerid);
public Pinigas1(playerid)
{
new string[128];
format(string, sizeof(string), "%dLt", GetPlayerMoney(playerid));
TextDrawSetString(Pinigai4[playerid], string);
return 1;
}


public OnPlayerSpawn(playerid){
TextDrawShowForPlayer(playerid,Pinigai0[playerid]);
TextDrawShowForPlayer(playerid,Pinigai1[playerid]);
TextDrawShowForPlayer(playerid,Pinigai2[playerid]);
TextDrawShowForPlayer(playerid,Pinigai3[playerid]);
TextDrawShowForPlayer(playerid,Pinigai4[playerid]);
Reply


Messages In This Thread
HELP textdraw problem - by sn0p - 15.07.2013, 15:44
Re: HELP textdraw problem - by dash5487 - 15.07.2013, 15:51
Re: HELP textdraw problem - by sn0p - 15.07.2013, 16:00
Re: HELP textdraw problem - by Psymetrix - 15.07.2013, 16:04
Re: HELP textdraw problem - by sn0p - 15.07.2013, 16:11
Re: HELP textdraw problem - by dannyk0ed - 15.07.2013, 16:20
Re: HELP textdraw problem - by Psymetrix - 15.07.2013, 16:25
Re: HELP textdraw problem - by sn0p - 15.07.2013, 17:02
Re: HELP textdraw problem - by Bakr - 15.07.2013, 17:17
Re: HELP textdraw problem - by Psymetrix - 15.07.2013, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)