(Pomoć) Prodavanje kuće igraču (/accept house)

Započeo sch, Novembar 23, 2012, 23:01:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

sch

*

Skripta koju koristim:GeForce Roleplay.
Detaljan opis problema: Ovako,da objasnim,kao Å¡to sam rekao koristim GF skriptu i imam problem sa kupovinom kuće od igrača.Ja sam izvukao iz UCP GF skripte i tamo sve radi,dok sam ovdje sve prebacio u strcmp procesor komandi.Kod komande sellhouse mi sve radi perfektno ali kada doÄ'em accept house piÅ¡e mi: Taj igrač nema kuću!
Stvarno ne znam na šta se to odnosti i do čega može biti,definirao sam pod ResetArrways > SetPVarInt(playerid, "HouseOffer", 999); i uvijek me ovo zeza SendClientMessage(playerid, COLOR_RED, "Taj igrac nema kucu!"); ne znam do čega može biti.Ako nije problem pomoć.
Dio skripte:

else if(strcmp(x_job,"house",true) == 0)
{
    new seller = GetPVarInt(playerid, "HouseOffer");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(PlayerInfo[playerid][pPhousekey] != 255)
{
        SendClientMessage(playerid, COLOR_RED, "Ti imas kucu ili vec iznajmljujes!");
        return 1;
}
if(PlayerInfo[seller][pPhousekey] != 255 && strcmp(sendername, HouseInfo[PlayerInfo[seller][pPhousekey]][hOwner], true) == 0)
{
    if(seller != 255)
{
        if(IsPlayerConnected(seller))
{
            if (ProxDetectorS(5.0, playerid, seller))
{
    if(SafeGetPlayerMoney(playerid) >= GetPVarInt(playerid, "HouseOfferPrice"))
{
        strmid(HouseInfo[PlayerInfo[seller][pPhousekey]][hOwner], sendername, 0, strlen(sendername), 255);
        HouseInfo[PlayerInfo[seller][pPhousekey]][hRentabil] = 0;
        format(motd, sizeof(motd),"Vlasnik kuce %s\nAdresa %s\nCijena %d\nLevel %d", playername, HouseInfo[PlayerInfo[seller]           [pPhousekey]][hAdress], HouseInfo[PlayerInfo[seller][pPhousekey]][hValue], HouseInfo[PlayerInfo[seller][pPhousekey]][hLevel]);
        UpdateDynamic3DTextLabelText(houseTextInfo[PlayerInfo[seller][pPhousekey]], COLOR_NICEYELLOW, motd);

        PlayerInfo[playerid][pPhousekey] = PlayerInfo[seller][pPhousekey];
        PlayerPlayMusic(playerid);
format(string, sizeof(string), "* Kupili ste kucu od %s u iznosu od $%d.", sendername, GetPVarInt(playerid, "HouseOfferPrice"));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s je kupio vasu kucu za $%d.", sendername, GetPVarInt(playerid, "HouseOfferPrice"));
SendClientMessage(seller, COLOR_LIGHTBLUE, string);
SafeGivePlayerMoney(playerid, - GetPVarInt(playerid, "HouseOfferPrice"));
SafeGivePlayerMoney(seller, GetPVarInt(playerid, "HouseOfferPrice"));
SaveProperty(PlayerInfo[seller][pPhousekey]);
SetPVarInt(playerid, "HouseOffer", 999);
SetPVarInt(playerid, "HouseOfferPrice", 0);
PlayerInfo[seller][pPhousekey] = 255;
}
else
SendClientMessage(playerid, COLOR_RED, "Nemas dovoljno novca !");
}
else
SendClientMessage(playerid, COLOR_RED, "Prodavac kuce nije dovoljno blizu vas !");
        }
else
{
            SetPVarInt(playerid, "HouseOffer", 999);
SetPVarInt(playerid, "HouseOfferPrice", 0);
}
}
    else
SendClientMessage(playerid, COLOR_RED, "   Nitko vam nije ponudio svoju kucu !");
}
    else
    {
SendClientMessage(playerid, COLOR_RED, "Taj igrac nema kucu!");
    }
    return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Pawn Scripting Arbaiter
Willfried Schafer


sch

*


sch

*

Izvinjavam se na duplom postu.

Srijedio sam,nema potrebe više /lock ovo.

PS: sve što ja pitam ,već 4-5 puta sam pitao ovdje na BS postavljao i nitko ne zna odgovoriti pa ni ovo,a bilo je samo stvar u jednom kodu ali no nema veze.Bilo kako bilo.
Pawn Scripting Arbaiter
Willfried Schafer