SA-MP Forums Archive
Pickup bug - 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: Pickup bug (/showthread.php?tid=450291)



Pickup bug [SOLVED] - dewilix - 12.07.2013

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");
			}
    	}



Re: Pickup bug - iJumbo - 12.07.2013

That reccomended to use a streamer

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

See if bug with that streamer


Re: Pickup bug - dewilix - 12.07.2013

Fixed. Thanks. I had old version of streamer.