07.03.2012, 10:31
Hello,i've this textdraw for medical fees. (when a player die it will pay a random ammount of money):
This is the random ammount:
The problem is: How to show the random ammount of money in this textdraw:
..? Thanks.
pawn Код:
MedFeesTxd0 = TextDrawCreate(40.000000, 207.000000, "Medical Fees");
TextDrawBackgroundColor(MedFeesTxd0, 255);
TextDrawFont(MedFeesTxd0, 3);
TextDrawLetterSize(MedFeesTxd0, 0.520000, 1.700000);
TextDrawColor(MedFeesTxd0, -16776961);
TextDrawSetOutline(MedFeesTxd0, 1);
TextDrawSetProportional(MedFeesTxd0, 1);
MedFeesTxd1 = TextDrawCreate(12.000000, 229.000000, "The hospital has ordered you to pay taxes.");
TextDrawBackgroundColor(MedFeesTxd1, 255);
TextDrawFont(MedFeesTxd1, 1);
TextDrawLetterSize(MedFeesTxd1, 0.290000, 2.000000);
TextDrawColor(MedFeesTxd1, -1);
TextDrawSetOutline(MedFeesTxd1, 0);
TextDrawSetProportional(MedFeesTxd1, 1);
TextDrawSetShadow(MedFeesTxd1, 1);
TextDrawUseBox(MedFeesTxd1, 1);
TextDrawBoxColor(MedFeesTxd1, 255);
TextDrawTextSize(MedFeesTxd1, 223.000000, 0.000000);
MedFeesTxd2 = TextDrawCreate(12.000000, 251.000000, "0$ medical fees paid. Thank you.");
TextDrawBackgroundColor(MedFeesTxd2, 255);
TextDrawFont(MedFeesTxd2, 1);
TextDrawLetterSize(MedFeesTxd2, 0.400000, 2.000000);
TextDrawColor(MedFeesTxd2, -1);
TextDrawSetOutline(MedFeesTxd2, 1);
TextDrawSetProportional(MedFeesTxd2, 1);
TextDrawUseBox(MedFeesTxd2, 1);
TextDrawBoxColor(MedFeesTxd2, 255);
TextDrawTextSize(MedFeesTxd2, 244.000000, 0.000000);
pawn Код:
new mrand =random(35000);
new string[128];
format(string,sizeof(string),"The hospital has charged you $%d for their medical services.",mrand);
SendClientMessage(playerid,red,string);
GivePlayerMoney(playerid,-mrand);
pawn Код:
MedFeesTxd2 = TextDrawCreate(12.000000, 251.000000, "0$ medical fees paid. Thank you.");