SA-MP Forums Archive
There's no name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: There's no name (/showthread.php?tid=434365)



There's no name - Luca12 - 02.05.2013

when i sell apartment to another player then on the apartment label says

Owner: but there's no name if you know what I say. Thanks


Re: There's no name - Ciandlah - 02.05.2013

Send us all the lines to your code please, If this is an NGRP edit. I will not help you at all


Re: There's no name - Luca12 - 02.05.2013

this is my mode i send you a code where player accept apartment from another player
and do you need a updatestan stock?

Quote:

if(StaProdaje[playerid] == PR_STAN)
{
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;
UpdateStan();
SaveStanove(i);
}