Need small help with Buying house
#3

pawn Код:
#define MAX_HOUSES 3
You can change this to whatever you want anytime.

Use your variable to check the houses owned by the player:
pawn Код:
if(pHouses[playerid] > MAX_HOUSES) return SendClientMessage(playerid, -1, "You have the maximum amount of houses.");
Change the variable name to whatever you want, that's just an example.

The post above is correct, I felt like doing this in a different way.
Reply


Messages In This Thread
Need small help with Buying house - by Sc0pion - 18.03.2015, 15:30
Re: Need small help with Buying house - by CalvinC - 18.03.2015, 15:32
Re: Need small help with Buying house - by iFiras - 18.03.2015, 15:37
Re: Need small help with Buying house - by Sc0pion - 18.03.2015, 17:18
Re: Need small help with Buying house - by Sc0pion - 18.03.2015, 17:45
Re: Need small help with Buying house - by SickAttack - 18.03.2015, 17:49
Re: Need small help with Buying house - by iFiras - 18.03.2015, 17:51
Re: Need small help with Buying house - by CalvinC - 18.03.2015, 17:59
Re: Need small help with Buying house - by Sc0pion - 18.03.2015, 19:26
Re: Need small help with Buying house - by SickAttack - 18.03.2015, 20:17

Forum Jump:


Users browsing this thread: 2 Guest(s)