[FilterScript] Jueix's Dynamic Features (House System, Business, Vehicles)
#10

I agree with Pottus, so many entries that you could have just indexed it with an array, Yes the script is cool but the code isn't, Anyways if you're planning to update it asap I think this could have saved your time when you used array.

For example

pawn Code:
new Object0[ MAX_HOUSES ];
new Object1[ MAX_HOUSES ];
// and so on.
Instead of

pawn Code:
new Object[ MAX_HOUSES ][ 30 ];
pawn Code:
enum JHouseInfo
{
    Object1ID,
    Float:Object1X,
    Float:Object1Y,
    Float:Object1Z,
    Float:Object1RX,
    Float:Object1RY,
    Float:Object1RZ,
    Object1INT,
    Object1VW
    // and so on.
}
new jHinfo [ MAX_HOUSES][ JHouseInfo ];
Instead of

pawn Code:
enum JHouseInfo
{
    ObjectID[ 60 ],
    Float:ObjectX[ 60 ],
    Float:ObjectY[ 60 ],
    Float:ObjectZ[ 60 ],
    Float:ObjectRX[ 60 ],
    Float:ObjectRY[ 60 ],
    Float:ObjectRZ[ 60 ],
    ObjectINT[ 60 ],
    ObjectVW[ 60]
    // and so on.
}
new jHinfo [ MAX_HOUSES][ JHouseInfo ];
It looks shorter isn't it?
Reply


Messages In This Thread
Jueix's Dynamic Features (House System, Business, Vehicles) - by jueix - 29.04.2014, 13:53
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by iRaiDeN - 29.04.2014, 13:56
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by Yves - 29.04.2014, 13:57
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by iRaiDeN - 29.04.2014, 13:58
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by jueix - 29.04.2014, 14:00
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by Parallex - 29.04.2014, 14:01
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by iRaiDeN - 29.04.2014, 14:01
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by jueix - 29.04.2014, 14:09
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by Pottus - 29.04.2014, 14:18
Re: Jueix's Dynamic Features (House System, Business, Vehicles) - by Patrick - 29.04.2014, 15:41
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by jueix - 29.04.2014, 17:03
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by Yves - 29.04.2014, 19:41
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by jueix - 29.04.2014, 20:43
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by Hax0rm - 30.04.2014, 09:35
Re : Jueix\'s Dynamic Features (House System, Business, Vehicles) - by aurys98 - 29.09.2014, 16:35
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by IDarkness - 29.09.2014, 16:54
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by momo123 - 29.09.2014, 17:28
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by xStunt - 29.09.2014, 17:35
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by Jdt - 01.10.2014, 09:48
Re : Jueix\'s Dynamic Features (House System, Business, Vehicles) - by aurys98 - 04.10.2014, 17:15
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by rockhopper - 05.10.2014, 06:12
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by n0minal - 05.10.2014, 06:40
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by Chrillzen - 05.10.2014, 16:22
Re: Jueix\'s Dynamic Features (House System, Business, Vehicles) - by jueix - 06.10.2014, 12:01

Forum Jump:


Users browsing this thread: 6 Guest(s)