Need help with selling and buying house
#1

Fixed!
Reply
#2

How are you defining "houseid"?
Reply
#3

Fixed!
Reply
#4

Quote:
Originally Posted by Sc0pion
View Post
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.
Reply
#5

Fixed!
Reply
#6

Well, "MAX_HOUSES" (not in your case) should be set to the amount of houses you have.
Reply
#7

Fixed!
Reply
#8

Quote:
Originally Posted by Sc0pion
View Post
Code:
#define MAX_HOUSES  100
But you're using "MAX_HOUSE_SLOTS" in the code?
Reply
#9

Fixed!
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)