Optimize my function
#3

You fucked yourself up with your data structures so everywhere in your code will need to be updated now to fix this. What you should have is something like this.

new PlayerInfo[playerid][MAX_PLAYER_HOUSES][HouseENUM]

It would be best though to separate your house system from your player interface then you could just save a list of references for each house a player owns which will reduce resources requires. I would just using mysql/sqlite and just save the primary integer keys.
Reply


Messages In This Thread
Optimize my function - by pelican1 - 19.05.2017, 15:54
Re: Optimize my function - by rolex - 19.05.2017, 16:00
Re: Optimize my function - by Pottus - 19.05.2017, 16:00
Re: Optimize my function - by rolex - 19.05.2017, 16:05
Re: Optimize my function - by CheezIt - 19.05.2017, 17:32

Forum Jump:


Users browsing this thread: 2 Guest(s)