public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { new str[200]; if(_:playertextid != INVALID_TEXT_DRAW) { if(playertextid == LOGIN_PLAYER[playerid][3]) { my mssg } else if(playertextid == LOGIN_PLAYER[playerid][12]) { my dialog login } else if(playertextid == REGISTER_PLAYER[playerid][3]) { mymssg } else if(playertextid == REGISTER_PLAYER[playerid][12]) { my dialog } for(new maxtd;maxtd<13;maxtd++) { PlayerTextDrawHide(playerid, LOGIN_PLAYER[playerid][maxtd]); PlayerTextDrawHide(playerid, REGISTER_PLAYER[playerid][maxtd]); } CancelSelectTextDraw(playerid); } return 0; }
CapacityText[playerid] = CreatePlayerTextDraw(playerid, 32.000000, 290.000000, "Vehicle Capacity (0/10)"); PlayerTextDrawBackgroundColor(playerid, CapacityText[playerid], 255); PlayerTextDrawFont(playerid, CapacityText[playerid], 1); PlayerTextDrawLetterSize(playerid, CapacityText[playerid], 30.200000, 1.000000); PlayerTextDrawColor(playerid, CapacityText[playerid], -1); PlayerTextDrawSetOutline(playerid, CapacityText[playerid], 1); PlayerTextDrawSetProportional(playerid, CapacityText[playerid], 1); PlayerTextDrawSetSelectable(playerid, CapacityText[playerid], 0); CapacityBar[playerid] = CreatePlayerProgressBar(playerid, 30.000000, 304.000000, 118.500000, 6.199999, -1429936641, TRASH_LIMIT, 0);
Yes you have to calculate it for every one. Requires a lot of testing and trieing. An example:
Код:
CapacityText[playerid] = CreatePlayerTextDraw(playerid, 32.000000, 290.000000, "Vehicle Capacity (0/10)"); PlayerTextDrawBackgroundColor(playerid, CapacityText[playerid], 255); PlayerTextDrawFont(playerid, CapacityText[playerid], 1); PlayerTextDrawLetterSize(playerid, CapacityText[playerid], 30.200000, 1.000000); PlayerTextDrawColor(playerid, CapacityText[playerid], -1); PlayerTextDrawSetOutline(playerid, CapacityText[playerid], 1); PlayerTextDrawSetProportional(playerid, CapacityText[playerid], 1); PlayerTextDrawSetSelectable(playerid, CapacityText[playerid], 0); CapacityBar[playerid] = CreatePlayerProgressBar(playerid, 30.000000, 304.000000, 118.500000, 6.199999, -1429936641, TRASH_LIMIT, 0); |
their is no problem in lettertextsize problem was in textsize
after removing that its fixed ok |