Pickup bug
#1

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:
Код:
HouseInfo[TOTALHOUSE][hPickup] = CreatePickup(1273,1, HouseInfo[TOTALHOUSE][hEntrx], HouseInfo[TOTALHOUSE][hEntry], HouseInfo[TOTALHOUSE][hEntrz]);
OnplayerPickupPickup
Код:
    	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");
			}
    	}
Reply
#2

That reccomended to use a streamer

https://sampforum.blast.hk/showthread.php?tid=102865

See if bug with that streamer
Reply
#3

Fixed. Thanks. I had old version of streamer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)