Need help with selling and buying house - 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: Need help with selling and buying house (
/showthread.php?tid=568129)
Need help with selling and buying house -
Sc0pion - 19.03.2015
Fixed!
Re: Need help with selling and buying house -
SickAttack - 19.03.2015
How are you defining "houseid"?
Re: Need help with selling and buying house -
Sc0pion - 19.03.2015
Fixed!
Re: Need help with selling and buying house -
SickAttack - 19.03.2015
Quote:
Originally Posted by Sc0pion
Code:
#define HOUSEID(%0)
It doesn't create something like ID in the text file but each house I create is created with the name like 0, 1, 2, 3, 4 in the scriptfiles
|
Well, then that's your issue, you have to dynamically give the houses IDS.
Re: Need help with selling and buying house -
Sc0pion - 19.03.2015
Fixed!
Re: Need help with selling and buying house -
SickAttack - 19.03.2015
Well, "MAX_HOUSES" (not in your case) should be set to the amount of houses you have.
Re: Need help with selling and buying house -
Sc0pion - 19.03.2015
Fixed!
Re: Need help with selling and buying house -
SickAttack - 19.03.2015
Quote:
Originally Posted by Sc0pion
Code:
#define MAX_HOUSES 100
|
But you're using "MAX_HOUSE_SLOTS" in the code?
Re: Need help with selling and buying house -
Sc0pion - 19.03.2015
Fixed!
Re: Need help with selling and buying house -
SickAttack - 19.03.2015
RIGHT THERE! That's your problem!
MAX_HOUSE_SLOTS - That right there my friend represents the max amount of houses that you've CREATED, not the max amount of house a player is allowed to OWN. So change that to the amount of houses you have.