| Blockland Forums > Modification Help |
| Need your opinion on how i should store some information in variables. |
| (1/1) |
| infiniteLoop:
Let's say i have $this["uinameofdatablock"] = "something"; I can retrieve this information by doing %thing = $this[%datablock.uiname]; Should i do it that way, or this way (when i create the datablock just toss the info in there) datablock thingData(thing) { this = "something"; }; And retrieve it like this %datablock being the datablock of course %thing =%datablock.this; The info is simply just static information that won't change.. But which way do you guys think would be more efficient.. just wondering. |
| Plornt:
In my preference I would just save it in the datablock. |
| rkynick:
Generally I use arrays. |
| Xalos:
Saving it to the object is better; it's less likely to get overwritten that way. Also, 1: Are you going in an infinite loop? Yes: 2; No: 3. 2: Go to 1. 3: Go to 1. :3 |
| Destiny/Zack0Wack0:
--- Quote from: Xalos on July 29, 2011, 08:27:33 AM --- :3 --- End quote --- :3 :3 :3 u so funy |
| Navigation |
| Message Index |