how to make a simple house system
#4

"How to create a house system" in a nutshell:
  1. Create an enum with the data per house
    PHP код:
    enum MyHouseData
    {
      
    House_ID,
      
    HouseOwner[25]
      ... 
    //etc

  2. Create an array with the enum previously created
    PHP код:
    #define MAX_HOUSES_ON_MY_SERVER 100
    new MyHouses[MAX_HOUSES_ON_MY_SERVER][MyHouseData]; 
  3. Make a system for loading the houses
  4. Make a system for saving houses
  5. Make commands for changing the houses (i.e. /buythishouse /gotohouse etc)
  6. Test to see if everything is working as expected
  7. Enjoy
Good Luck!
Reply


Messages In This Thread
how to make a simple house system - by Jithu - 17.03.2018, 13:19
Re: how to make a simple house system - by Jithu - 17.03.2018, 13:25
Re: how to make a simple house system - by Jithu - 17.03.2018, 13:48
Re: how to make a simple house system - by 10MIN - 17.03.2018, 14:33
Re: how to make a simple house system - by iKarim - 17.03.2018, 14:45
Re: how to make a simple house system - by jasperschellekens - 17.03.2018, 15:08
Re: how to make a simple house system - by m1kas - 17.03.2018, 23:19
Re: how to make a simple house system - by Jithu - 18.03.2018, 03:14

Forum Jump:


Users browsing this thread: 1 Guest(s)