12.07.2013, 13:59
(
Последний раз редактировалось dewilix; 12.07.2013 в 14:34.
)
Hello, I have pickup bug. When player pickup pickup ShowPlayerDialog(... ) doesn't show up.
if playerid == 0 it shows up always, but when it's playerid is higher than 0 it's starts to bug until he pickup other pickup.
CODE:
OnplayerPickupPickup
if playerid == 0 it shows up always, but when it's playerid is higher than 0 it's starts to bug until he pickup other pickup.
CODE:
Код:
HouseInfo[TOTALHOUSE][hPickup] = CreatePickup(1273,1, HouseInfo[TOTALHOUSE][hEntrx], HouseInfo[TOTALHOUSE][hEntry], HouseInfo[TOTALHOUSE][hEntrz]);
Код:
if(pickupid == HouseInfo[idx][hPickup]) { SetPVarInt(playerid, "PlayerHouse", idx); if(!strcmp(HouseInfo[idx][hOwner],"None",true)) { format(string,sizeof(string),"Mājas numurs:\t№%d\n\nCena:\t%d\nTips:\t\t%s",idx,GetInflationPrice(HouseInfo[idx][hPrice]),HouseInfo[idx][hDiscript]); return ShowPlayerDialog(playerid, D_JOINHOUSE, 0,"Māja",string,"Labi","Atcelt"); } else { format(string,sizeof(string),"Mājas numurs:\t№%d\n\nĪpaљnieks:\t%s\nTips:\t\t%s",idx,HouseInfo[idx][hOwner],HouseInfo[idx][hDiscript]); return ShowPlayerDialog(playerid, D_JOINHOUSE, 0,"Māja",string,"Labi","Atcelt"); } }