07.05.2014, 05:38
I'm unsure of why I'm recieving these errors.
pawn Код:
stock UpdateBankTD(playerid)
{
new tdcashstring[50];
new bank = pInfo[playerid][pBankBalance];
format(tdcashstring,sizeof(tdcashstring), "%d", bank);
//"Bank: " td
TD_BANK[playerid] = CreatePlayerTextDraw(playerid,491.000000,126.000000,"Bank:");
PlayerTextDrawAlignment(playerid,TD_BANK[playerid],0);
PlayerTextDrawBackgroundColor(playerid,TD_BANK[playerid],0x000000ff);
PlayerTextDrawFont(playerid,TD_BANK[playerid],3);
PlayerTextDrawLetterSize(playerid,TD_BANK[playerid],1.000000,1.000000);
PlayerTextDrawColor(playerid,TD_BANK[playerid],0x00ff0099);
PlayerTextDrawSetOutline(playerid,TD_BANK[playerid],1);
PlayerTextDrawSetShadow(playerid,TD_BANK[playerid],3);
PlayerTextDrawSetShadow(playerid,TD_BANK[playerid],1);
//Bank string (how much money)
TD_CASH[playerid] = CreatePlayerTextDraw(playerid,593.000000,126.000000,tdcashstring);
PlayerTextDrawAlignment(playerid,TD_CASH[playerid],0);
PlayerTextDrawBackgroundColor(playerid,TD_CASH[playerid],0x000000ff);
PlayerTextDrawFont(playerid,TD_CASH[playerid],3);
PlayerTextDrawLetterSize(playerid,TD_CASH[playerid],0.499999,0.899999);
PlayerTextDrawColor(playerid,TD_CASH[playerid],0xffffffff);
PlayerTextDrawSetOutline(playerid,TD_CASH[playerid],1);
PlayerTextDrawSetProportional(playerid,TD_CASH[playerid],1);
PlayerTextDrawSetShadow(playerid,TD_CASH[playerid],1);
//refreshing it.
PlayerTextDrawHide(playerid, TD_CASH[playerid]);
PlayerTextDrawShow(playerid, TD_CASH[playerid]);
return 1;
}