Skripta koju koristim: BE (Balkan Exotic EDIT)
Detaljan opis problema: Imam problem sa textdrawom za zlatom i komandom za kupovinu i prodaju.
Deo skripte:
}
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, -10681);
PlayerInfo += 1;
SendClientMessage(playerid, COLOR_GREY, "Kupili ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
if(strcmp(cmd,"/prodajzlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
GivePlayerMoney(playerid, 10681);
PlayerInfo -= 1;
SendClientMessage(playerid, COLOR_GREY, "Prodali ste 1 gram zlata po ceni od: 10681$.");
return 1;
new stringzlato;
new zlato = PlayerInfo;
TextDrawShowForPlayer(playerid,zlatotext);
format(stringzlato, sizeof(stringzlato),"%s",zlato);
TextDrawSetString(zlatotext,stringzlato);//zlato
Textdraw
zlatotext = TextDrawCreate(540.0000, 132.0000, "zlato:");
TextDrawBackgroundColor(zlatotext, 0x2641FEAA);
TextDrawFont(zlatotext, 2);
TextDrawLetterSize(zlatotext, 0.4600, 1.1000);
TextDrawColor(zlatotext, 0xFC0000FF);
TextDrawSetOutline(zlatotext, 1);
TextDrawSetProportional(zlatotext, 1);
TextDrawSetShadow(zlatotext, 1);
SLIKA: http://zaslike.com/viewer.php?file=zidgp6jzads4rw9c31a9.jpg
