SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/04/2015, 10:36 PM   #1
iBots
Huge Clucker
 
Join Date: Aug 2013
Posts: 498
Reputation: 7
Default which is better

i have made object system for houses,which is better,to make enum for each one,like enum for houses and enum for objects and mix them together or make enum for houses and put the objects in the houses enum,so it will be hInfo[houseid][object][objectid], OR hInfo[houseid][house enum] and oInfo[objectid][houseid]?
NOTE:I am using alot of dialogs in that system so i wanna keep amx size small
iBots is offline   Reply With Quote
Old 16/04/2015, 10:45 PM   #2
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,528
Reputation: 556
Default Re: which is better

Amx will be still the same size for both, but you might run into issues with maximum array dimensions. Zeex's compiler soon will be able to handle more dimensions, though he hadn't merged important patch yet.
Misiur is offline   Reply With Quote
Old 16/04/2015, 11:09 PM   #3
iBots
Huge Clucker
 
Join Date: Aug 2013
Posts: 498
Reputation: 7
Default Re: which is better

but which one is better,and by the way i made it using 2 enums,enum for objects and one for houses and it increased like 3000 kb and .pwn is 59 kb
iBots is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 11:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.