16.08.2018, 23:09
I've creating a textdraws for a player To show him the amount he must payed but After The player show the textdraw he don't even see the price why? To remember you I've creating a textdraws..
PHP код:
// The textdraw created
Textdraw3 = TextDrawCreate(563.679870, 359.370605, "");
TextDrawLetterSize(Textdraw3, 0.257999, 1.114666);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, -1);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 1);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 1);
TextDrawSetProportional(Textdraw3, 1);
//In the command...
MoneyForBail[playerid] = random(7000) + 1000;
if(MoneyForBail[playerid] > GetPlayerCash(playerid))
{
MoneyFor[playerid] = MoneyForBail[playerid];
//In the public But it's not working.. They always shown 0 or -1 the amount
format(string, sizeof(string), "%d", MoneyFor[playerid]);
TextDrawSetString(Textdraw3, string);