PDA

View Full Version : TextDraw


Ahmedredaibrahim
29/12/2015, 05:56 PM
What Is problem in this textdraw ?


new Text:bankcash;
public OnGameModeInit(){
bankcash = TextDrawCreate(445.599884, 336.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(bankcash, strline);
TextDrawShowForPlayer(playerid, bankcash);
return 1;
}

lucamsx
29/12/2015, 10:20 PM
You're trying to show a various amounts of money for every single player on a global textdraw

Banana_Ghost
29/12/2015, 10:22 PM
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.

Ahmedredaibrahim
30/12/2015, 06:52 AM
I Use 0.3C Version Player TextDraws Will Not Work For It