SA-MP Forums Archive
Simple Help - 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: Simple Help (/showthread.php?tid=611212)



Simple Help - HydraHumza - 03.07.2016

FIXED


Re: Simple Help - Stinged - 03.07.2016

If the player doesn't have anything in that slot, the 'weapon' variable will be equal to 0.
So you need change this
Код:
if(weapon != GetModelWeaponID(DropInfo[i][D_Model]))
To this
Код:
if(weapon != 0 && weapon != GetModelWeaponID(DropInfo[i][D_Model]))
What it does is it checks if the player actually has anything in that slot.
That should work, but there's a possibility that it doesn't, so reply if you run into problems.


Re: Simple Help - HydraHumza - 03.07.2016

I try that way later. But now maybe I was wrong somewhere it works thanks..