CMD:buyhouse help
#7

Quote:
Originally Posted by JamesH
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][pHouse] != INVALID_HOUSE_ID && PlayerInfo[playerid][pVIP] <2)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "You already own a house.");
                    return 1;
                }
change the [pVIP] to your VIP variable, this will let VIP 2 buy more than 1 house.
It's much more complex than that.

You need to store the house information that means you will have to choose an approach to do this the best way is probably the most difficult since these mindless roleplay scripts don't have a modular approach. This means all the systems are slapped into the gamemode in a very messy way the only real way to achieve what you want is to strip out the whole houses system and implement it into it's own include module. There really is no easy solution to your problem in fact the time you will spend getting everything in order you'll be better off making your own gamemode.

I just don't think your analyzing your problem fully, well you wouldn't be asking if you were sure because your not sure so I'm trying to be objective here and give you a realistic outlook.

- For myself to do this I would estimate the time would take up to 2-3 days
- The whole housing system needs to be stripped out of the gamemode and implemented into a include
- Code needs to be modified to accomodate more than one house
- Dynamic design would have to looked over
- If there is no mysql/sqlite support it would have to be coded (ini is a hinderance)
- The lookup method for houses is unacceptable woud have to be re-written
- Code needs to be tested throughly

In other words you don't know what your doing you'll never get it done it's more than what you would think to do it properly. There is also probably a lot of other things that would need to be done as well along the way this is why you don't use crappy gamemodes downloaded off the forum and expect to get anywhere with it.
Reply


Messages In This Thread
CMD:buyhouse help - by Jizz - 30.09.2013, 10:07
Re: CMD:buyhouse help - by JamesH - 30.09.2013, 10:21
Re: CMD:buyhouse help - by Jizz - 30.09.2013, 14:33
Re: CMD:buyhouse help - by Jizz - 01.10.2013, 08:45
Re: CMD:buyhouse help - by nguyenquynh - 01.10.2013, 11:03
Re: CMD:buyhouse help - by Jizz - 01.10.2013, 23:11
Re: CMD:buyhouse help - by Pottus - 01.10.2013, 23:32

Forum Jump:


Users browsing this thread: 1 Guest(s)