15.03.2015, 21:04
I did my mode TextDraw after a while does not appear on the server. What is the reason?
new Text:hp[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
hp[playerid] = TextDrawCreate(564.000000, 66.000000, "%100");
TextDrawBackgroundColor(hp[playerid], 255);
TextDrawFont(hp[playerid], 1);
TextDrawLetterSize(hp[playerid], 0.260000, 0.899999);
TextDrawColor(hp[playerid], -1);
TextDrawSetOutline(hp[playerid], 0);
TextDrawSetProportional(hp[playerid], 1);
TextDrawSetShadow(hp[playerid], 1);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawDestroy(playerid,hp[playerid]);
return 1;
}