29.12.2015, 17:56
What Is problem in this textdraw ?
PHP код:
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;
}