Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Adding an Argument to a Prefs Value
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding an Argument to a Prefs Value (Read 590 times)
Club559
April 21, 2009, 07:44:46 PM
For some reason, $Pref::Server::Coordinates::save[%savename] doesn't work. Why?
Ad Bot
Advertisement
Chrono
April 21, 2009, 07:55:49 PM
Does %savename exist?
Club559
April 21, 2009, 09:06:44 PM
Duh, it does.
Ephialtes
April 22, 2009, 02:34:14 AM
What you're doing here is just creating an array, not "adding an argument" so you still need to do:
$Pref::Server::Coordinates::save[%savename] = 1;
To give it a value, or it has a value of null.
Club559
April 22, 2009, 06:48:10 PM
This means for seperate relatives of that, I have to do...
$Pref::Server::CashStorage::storedCash[%storage] = "CashAmount";
$Pref::Server::CashStorage::storageOwner[%storage] = "OwnerName";
...but it solves my problem. Thanks.
Destiny/Zack0Wack0
April 23, 2009, 04:31:00 AM
You can do something like $Pref::Server::CashStorage::storedData[%storageCount] and just separate the values by TABs, for more organisation.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Adding an Argument to a Prefs Value