SA-MP Forums Archive
How to make confirmation commands? - 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: How to make confirmation commands? (/showthread.php?tid=603260)



How to make confirmation commands? - Markus_Whiteus - 20.03.2016

Not sure how to go about this, I'm creating a /sellhouseto [playerid] [price] command for my script.
Wondering how I'd go about making that dependant on the other player typing in a /accepthouse command how do I go about this?


Re: How to make confirmation commands? - introzen - 20.03.2016

I would use the current house data asset to store the offer and given parameters. For example HouseInfo[][offerID].

Then either loop through the first dimension of all houses on /acceptoffer or store the houseID in the player data asset.


Re: How to make confirmation commands? - Markus_Whiteus - 20.03.2016

Quote:
Originally Posted by introzen
Посмотреть сообщение
I would use the current house data asset to store the offer and given parameters. For example HouseInfo[][offerID].

Then either loop through the first dimension of all houses on /acceptoffer or store the houseID in the player data asset.
Thanks used this idea and got it working, Have some rep!