Script giving random weapons OnDialogResponse ? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script giving random weapons OnDialogResponse ? (
/showthread.php?tid=213253)
Script giving random weapons OnDialogResponse ? -
Kyle_Olsen - 18.01.2011
All right, I am having a little bit of a problem.
Even though there are no such codes to give the player any weapons, they get them randomly when they respond to a dialog.
I have gone through rhe script several times, without finding out what may be causing it.
This bug needs to be fixed, as a large part of my system is based off of dialogs.
Re: Script giving random weapons OnDialogResponse ? -
Joe Staff - 18.01.2011
There's no other explanation other than your script having issues, as I have never had this probldm and I've been dealing with dialogs since they first came out. Do a check for GivePlayerWeapon and see if you're running a function containing it within OnDialogResponse
Re: Script giving random weapons OnDialogResponse ? -
Kyle_Olsen - 03.02.2011
I'm not, not outside any cases at least. And even where I am, I'm using my GivePlayerWeaponEx which gives the weapon with 99999 ammo (indefinite), and when those random guns spawn, there is ammo at a high point. 200 when it's sniper... close to 10000 when it's MP5, and so on