apartment label
#1

So when I sell apartment to another player and he accept my sell then when he accept on the apartment label says:

Owner: and next is empty there should be a his name on the apartment label but there isn't?
Reply
#2

how many times ??
You need to provide CODE in order to solve it.
Tell me how the h*ll are we going to know what ur code is like ??
Reply
#3

ok this is when player accept the apartment I'm from Croatia so most of the text will be in the Croatian language.

Quote:
Quote:

if(PlayerInfo[playerid][pStan] != -1) return SCM(playerid, GRAD2, "{F81414}[Greska!] {C3C3C3}Vi vec posjedujete jedan stan!");
PlayerInfo[playerid][pStan] = PlayerInfo[id][pStan];
new i = PlayerInfo[playerid][pStan];
PlayerInfo[id][pStan] = -1;
strmid(StanInfo[PlayerInfo[playerid][pStan]][stVlasnik], imek, 0, strlen(imek), 255);
GivePlayerMoney(playerid, -CenaProdaje[playerid]);
GivePlayerMoney(id, CenaProdaje[playerid]);
SCMF(playerid, BELA, "Uspjesno ste kupili stan od igraca %s po cijeni od $%d!", hIme[0],CenaProdaje[playerid]);
SCMF(id, BELA, "Uspjesno ste prodali stan igracu %s za cijenu od $%d!", hIme[1],CenaProdaje[playerid]);
StaProdaje[playerid] = 0;
KomeProdaje[playerid] = -1;
CenaProdaje[playerid] = 0;
PonudioIgrac[playerid] = -1;
StaProdaje[id] = 0;
KomeProdaje[id] = -1;
CenaProdaje[id] = 0;
PonudioIgrac[id] = -1;
StanLP();
SaveStanove(i);

and this is the apartment update label

Quote:
Quote:

stock StanLP()
{
new string[128];
for(new i = 0; i < MAX_STANOVA; i++)
{
if(StanInfo[i][stStanje] == 0)
{
format(string,sizeof(string),"{B7FF00}Stan na prodaju\n{B7FF00}Cijena: {FFFFFF}%d$\n{B7FF00}Level: {FFFFFF}%d",StanInfo[i][stCena],StanInfo[i][stLevel]);
UpdateDynamic3DTextLabelText(stansale[i], 0xFFFF00AA, string);
DestroyPickup(picstan[i]);
picstan[i] =CreatePickup(1273, 1, StanInfo[i][stPozicijaX], StanInfo[i][stPozicijaY], StanInfo[i][stPozicijaZ]);
}
else if(StanInfo[i][stStanje] == 1)
{
format(string,sizeof(string), "{B7FF00}Vlasnik Stana: {FFFFFF}%s\n{B7FF00}Level: {FFFFFF}%d",StanInfo[i][stVlasnik],StanInfo[i][stLevel]);
UpdateDynamic3DTextLabelText(stansale[i], 0xFFFF00AA, string);
DestroyPickup(picstan[i]);
picstan[i] =CreatePickup(1239, 1, StanInfo[i][stPozicijaX], StanInfo[i][stPozicijaY], StanInfo[i][stPozicijaZ]);
}
}
return 1;
}

Reply
#4

anyone. Thanks
Reply
#5

Use pastebin or [pawn] instead of [quote]
Reply
#6

ok this is when player accept the apartment I'm from Croatia so most of the text will be in the Croatian language.


pawn Код:
if(PlayerInfo[playerid][pStan] != -1) return SCM(playerid, GRAD2, "{F81414}[Greska!] {C3C3C3}Vi vec posjedujete jedan stan!");
PlayerInfo[playerid][pStan] = PlayerInfo[id][pStan];
new i = PlayerInfo[playerid][pStan];
PlayerInfo[id][pStan] = -1;
strmid(StanInfo[PlayerInfo[playerid][pStan]][stVlasnik], imek, 0, strlen(imek), 255);
GivePlayerMoney(playerid, -CenaProdaje[playerid]);
GivePlayerMoney(id, CenaProdaje[playerid]);
SCMF(playerid, BELA, "Uspjesno ste kupili stan od igraca %s po cijeni od $%d!", hIme[0],CenaProdaje[playerid]);
SCMF(id, BELA, "Uspjesno ste prodali stan igracu %s za cijenu od $%d!", hIme[1],CenaProdaje[playerid]);
StaProdaje[playerid] = 0;
KomeProdaje[playerid] = -1;
CenaProdaje[playerid] = 0;
PonudioIgrac[playerid] = -1;
StaProdaje[id] = 0;
KomeProdaje[id] = -1;
CenaProdaje[id] = 0;
PonudioIgrac[id] = -1;
StanLP();
SaveStanove(i);
and this is the apartment update label

pawn Код:
stock StanLP()
{
new string[128];
for(new i = 0; i < MAX_STANOVA; i++)
{
if(StanInfo[i][stStanje] == 0)
{
format(string,sizeof(string),"{B7FF00}Stan na prodaju\n{B7FF00}Cijena: {FFFFFF}%d$\n{B7FF00}Level:  {FFFFFF}%d",StanInfo[i][stCena],StanInfo[i][stLevel]);
UpdateDynamic3DTextLabelText(stansale[i], 0xFFFF00AA, string);
DestroyPickup(picstan[i]);
picstan[i] =CreatePickup(1273, 1, StanInfo[i][stPozicijaX], StanInfo[i][stPozicijaY], StanInfo[i][stPozicijaZ]);
}
else if(StanInfo[i][stStanje] == 1)
{
format(string,sizeof(string), "{B7FF00}Vlasnik Stana: {FFFFFF}%s\n{B7FF00}Level: {FFFFFF}%d",StanInfo[i][stVlasnik],StanInfo[i][stLevel]);
UpdateDynamic3DTextLabelText(stansale[i], 0xFFFF00AA, string);
DestroyPickup(picstan[i]);
picstan[i] =CreatePickup(1239, 1, StanInfo[i][stPozicijaX], StanInfo[i][stPozicijaY], StanInfo[i][stPozicijaZ]);
}
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)