[Pomoc] Kucni auto se ne unistava kad igrace ode OFF !!!

Započeo Lilnelly, April 24, 2013, 20:42:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Detaljan opis problema : Znaci kada igrac udje ig normalno mu spawnuje HC kad igrac ode off nece da unisti kucno vozilo pa kada se vrati u igru spawna se jos jedan hc i tako se gomilaju.
Dio skripte : new house = PlayerInfo[playerid][pPhousekey]
{

    DestroyVehicle(Houses[house][hVec], PlayerInfo[playerid][pHCPos_x], PlayerInfo[playerid][pHCPos_y], PlayerInfo[playerid][pHCPos_z], PlayerInfo[playerid][pHCRot_],  Houses[house][hVcol1], Houses[house][hVcol2], 0);
      SetVehicleNumberPlate(HouseVehicle[playerid], "{800040}""HouseCar");
      }

Neke slike/video za lakse dobivanje pomoci [/b ]: http://ch-slike.com/image/wQF
176.9.140.165:8450 TBB <3
www.TheBig-Bang.info



Pod onplayerdisconect

if(PlayerInfo[playerid][pPhousekey] != 255)
{
DestroyVehicle(Houses[house][hVec], PlayerInfo[playerid][pHCPos_x], PlayerInfo[playerid][pHCPos_y], PlayerInfo[playerid][pHCPos_z], PlayerInfo[playerid][pHCRot_],  Houses[house][hVcol1], Houses[house][hVcol2], 0);
      SetVehicleNumberPlate(HouseVehicle[playerid], "{800040}""HouseCar");
}

Citat: BC Aldin Delic poslato April 24, 2013, 23:05:21 POSLE PODNE
Pod onplayerdisconect

if(PlayerInfo[playerid][pPhousekey] != 255)
{
DestroyVehicle(Houses[house][hVec], PlayerInfo[playerid][pHCPos_x], PlayerInfo[playerid][pHCPos_y], PlayerInfo[playerid][pHCPos_z], PlayerInfo[playerid][pHCRot_],  Houses[house][hVcol1], Houses[house][hVcol2], 0);
      SetVehicleNumberPlate(HouseVehicle[playerid], "{800040}""HouseCar");
}


Ništa, opet isti problem... :/
176.9.140.165:8450 TBB <3
www.TheBig-Bang.info


Zna li netko ?
176.9.140.165:8450 TBB <3
www.TheBig-Bang.info

Citat: Lenon poslato April 25, 2013, 15:22:23 POSLE PODNE
Kako ti je definisano ovo "house" ?

Gdje treba to biti definisano i ako je na pocetku pod define jeli ovo
#define House_File "Houses/House_%d.ini"

Ako nije objasni mi sta tacno da ti kazem jer nisam bas dugo u ovom svijetu pawna :P
176.9.140.165:8450 TBB <3
www.TheBig-Bang.info

Citat: Lenon poslato April 25, 2013, 17:35:16 POSLE PODNE
ne to nego:

DestroyVehicle(Houses[house][hVec],

new house = PlayerInfo[playerid][pPhousekey]

Jeli ovo ?
Poslednja Izmena: April 25, 2013, 18:30:38 POSLE PODNE od Lilnelly
176.9.140.165:8450 TBB <3
www.TheBig-Bang.info