Opis problema: Jel moze neko da mi pomogne gde da ubacim
//
{
new stringzlato;
new zlato = PlayerInfo;
TextDrawShowForPlayer(playerid,zlatotext);
format(stringzlato, sizeof(stringzlato),"%s",zlato);
TextDrawSetString(zlatotext,stringzlato);//zlato
}Dio skripte:
/////////////////////////////////Zlato/////////////////////////////
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
JBC_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))
JBC_GivePlayerMoney(playerid, 10681);
PlayerInfo -= 1;
SendClientMessage(playerid, COLOR_GREY, "Prodali ste 1 gram zlata po ceni od: 10681$.");
return 1;
}
new Text:zlatotext;
new zlatni;
// ONPLAYERCOMMANDTEXT
if(strcmp(cmd,"/kupizlato",true, 10)== 0)
{
if(IsPlayerInRangeOfPoint(playerid,2, 1126.1528,-1760.3688,13.5862))
JBC_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))
JBC_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
}
// OnPlayerConnect
zlatni=SetTimerEx("Zlatno", 500, 1,"i",playerid);
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);
