SA-MP Forums Archive
TextDraw - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw (/showthread.php?tid=597328)



TextDraw - Ahmedredaibrahim - 29.12.2015

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;




Re: TextDraw - lucamsx - 29.12.2015

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


Re: TextDraw - Banana_Ghost - 29.12.2015

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.


Re: TextDraw - Ahmedredaibrahim - 30.12.2015

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