TextDraw
#1

What Is problem in this textdraw ?

PHP код:
new Text:bankcash;
public 
OnGameModeInit(){
    
bankcash TextDrawCreate(445.599884336.000030,"$0001000");
    
TextDrawAlignment(bankcash,0);
    
TextDrawBackgroundColor(bankcash,0x000000ff);
    
TextDrawFont(bankcash,3);
    
TextDrawLetterSize(bankcash,0.399999,1.700000);
    
TextDrawColor(bankcash,0xff0000ff);
    
TextDrawSetOutline(bankcash,1);
    
TextDrawSetProportional(bankcash,1);
    
TextDrawSetShadow(bankcash,1);
return 
1;
}
public 
OnPlayerConnect(playerid){
settimer("bankcashupdate",1000,1);
return 
1;
}
forward bankcashupdate(playerid);
public 
bankcashupdate(playerid){
new 
strline[41];
format(strline,sizeof(strline),"{66FFFF}${FFFFFF}%d.",PlayerInfo[playerid][bank]);
TextDrawSetString(bankcashstrline);
TextDrawShowForPlayer(playeridbankcash);
return 
1;

Reply
#2

You're trying to show a various amounts of money for every single player on a global textdraw
Reply
#3

You're using hex coloring notation for setting the string colors when you should use gametext style coloring.
You also should be using Player TextDraws.
Reply
#4

I Use 0.3C Version Player TextDraws Will Not Work For It
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)