[HELP] Remove background from dialog [HELP]
#1

Hiye!

I don't know how to remove this black background:



Anyone who know?

My code:

PHP код:
public PlayerInfoTimer(){
  for(new 
i=0;i<MAX_SERVER_PLAYERS;i++){
    
Account[i][Score]=GetPlayerScore(i);
    
GetPlayerHealth(i,PlayerHealth);
    if(
Account[i][gTeam]==TEAM_TERRORISTS){
      if(
ServerInfo[Language]==1)format(string,sizeof(string),"Morti ~w~%d~n~~r~Uccisioni ~w~%d~n~~y~CompagniUccisi ~w~%d~n~~p~Punti ~w~%d~n~~g~Salute ~w~%.f~n~~r~DENARO TERRORISTI: ~w~%d$ ~n~~b~denaro polizia: ~w~%d"Account[i][Deaths], Account[i][GoodKillings], Account[i][BadKillings], Account[i][Score], PlayerHealth+1CriminalsAmmountSWATAmmount);
      if(
ServerInfo[Language]==2)format(string,sizeof(string),"~p~Score ~w~%d~n~~g~Health ~w~%.f~n~~r~TERRORISTS CASH: ~w~%d$ ~n~~b~police cash: ~w~%d"Account[i][Score], PlayerHealth+1CriminalsAmmountSWATAmmount);
      
TextDrawSetString(STATStext[i],string);}
    if(
Account[i][gTeam]==TEAM_SWAT){
      if(
ServerInfo[Language]==1)format(string,sizeof(string),"Morti ~w~%d~n~~r~Uccisioni ~w~%d~n~~y~CompagniUccisi ~w~%d~n~~p~Punti ~w~%d~n~~g~Salute ~w~%.f~n~~u~DENARO POLIZIA: ~w~%d ~n~~b~denaro terroristi: ~w~%d"Account[i][Deaths], Account[i][GoodKillings], Account[i][BadKillings], Account[i][Score], PlayerHealth+1SWATAmmountCriminalsAmmount);
      if(
ServerInfo[Language]==2)format(string,sizeof(string),"~p~Score ~w~%d~n~~g~Health ~w~%.f~n~~u~POLICE CASH: ~w~%d ~n~~b~terrorists cash: ~w~%d"Account[i][Score], PlayerHealth+1SWATAmmountCriminalsAmmount);
      
TextDrawSetString(STATStext[i],string);}
    if(
Account[i][gTeam]==TEAM_TERRORISTS){
      
GivePlayerMoney(i,ResetPlayerMoney(i)+CriminalsAmmount-1);}
    if(
Account[i][gTeam]==TEAM_SWAT){
      
GivePlayerMoney(i,ResetPlayerMoney(i)+SWATAmmount-1);}}
  return 
1;} 
Reply
#2

1. It's not a dialog, it's a textdraw. 2. Please give us code of the textdraw...
Reply
#3

It's not a dialog, it's a textdraw.
Just remove the code under your TextDrawCreate that creates the box:
https://sampwiki.blast.hk/wiki/TextDrawUseBox
Reply
#4

Ow sorry for saying its a dialog, btw thanks
Reply
#5

FIXED
Reply
#6

Glad you fixed your problem!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)